Fix compiler warning concering bad use of snprintf.

Signed-off-by: NeilBrown <neilb@suse.de>
Reported-by: Mikael Abrahamsson <swmike@swm.pp.se>
This commit is contained in:
NeilBrown 2010-08-06 20:10:48 +10:00
parent 850a31783a
commit cdbe98cd54
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}