NeilBrown: Fix compiler warning concering bad use of snprintf.
Martin F. Krafft
madduck at alioth.debian.org
Fri Sep 3 09:54:27 UTC 2010
Module: mdadm
Branch: build
Commit: cdbe98cd5462dd37430c1c78d1026fe3a7ff8004
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=cdbe98cd5462dd37430c1c78d1026fe3a7ff8004
Author: NeilBrown <neilb at suse.de>
Date: Fri Aug 6 20:10:48 2010 +1000
Fix compiler warning concering bad use of snprintf.
Signed-off-by: NeilBrown <neilb at suse.de>
Reported-by: Mikael Abrahamsson <swmike at swm.pp.se>
---
super-intel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/super-intel.c b/super-intel.c
index 4cebc8d..b880a74 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -5390,7 +5390,7 @@ static void imsm_process_update(struct supertype *st,
break;
}
- snprintf((char *) dev->volume, MAX_RAID_SERIAL_LEN, name);
+ snprintf((char *) dev->volume, MAX_RAID_SERIAL_LEN, "%s", name);
super->updates_pending++;
break;
}
More information about the pkg-mdadm-commits
mailing list