[WATCHDOG] pcwd.c sprintf/strcpy fix
authorWim Van Sebroeck <wim@iguana.be>
Thu, 2 Mar 2006 19:05:16 +0000 (20:05 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 2 Apr 2006 16:51:40 +0000 (18:51 +0200)
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>
drivers/char/watchdog/pcwd.c

index 28a404a..6d44ca6 100644 (file)
@@ -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);