Skip to content

Commit

Permalink
[WATCHDOG] pcwd.c sprintf/strcpy fix
Browse files Browse the repository at this point in the history
change sprintf(pcwd_private.fw_ver_str, "ERROR");
to strcpy... as pointed out by Andrew Morton.

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@osdl.org>
  • Loading branch information
Wim Van Sebroeck committed Apr 2, 2006
1 parent 369fa25 commit 6bbc20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/watchdog/pcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ static inline void pcwd_get_firmware(void)
{
int one, ten, hund, minor;

sprintf(pcwd_private.fw_ver_str, "ERROR");
strcpy(pcwd_private.fw_ver_str, "ERROR");

if (set_command_mode()) {
one = send_isa_command(CMD_ISA_VERSION_INTEGER);
Expand Down

0 comments on commit 6bbc20b

Please sign in to comment.