From: Wim Van Sebroeck Date: Thu, 2 Mar 2006 19:05:16 +0000 (+0100) Subject: [WATCHDOG] pcwd.c sprintf/strcpy fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6bbc20bc0b5d9c5a351fb3a027e60e396c1329a6;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [WATCHDOG] pcwd.c sprintf/strcpy fix change sprintf(pcwd_private.fw_ver_str, "ERROR"); to strcpy... as pointed out by Andrew Morton. Signed-off-by: Wim Van Sebroeck Signed-off-by: Andrew Morton --- diff --git a/drivers/char/watchdog/pcwd.c b/drivers/char/watchdog/pcwd.c index 28a404adf8f..6d44ca68312 100644 --- a/drivers/char/watchdog/pcwd.c +++ b/drivers/char/watchdog/pcwd.c @@ -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);