aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/watchdog
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2006-03-02 14:05:16 -0500
committerWim Van Sebroeck <wim@iguana.be>2006-04-02 12:51:40 -0400
commit6bbc20bc0b5d9c5a351fb3a027e60e396c1329a6 (patch)
tree26bd8c577eaf6af838e775b90996c3e214fa3f6b /drivers/char/watchdog
parent369fa25294b8225cb3a7fefabf047a2676bf6abd (diff)
[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 <wim@iguana.be> Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/char/watchdog')
-rw-r--r--drivers/char/watchdog/pcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/watchdog/pcwd.c b/drivers/char/watchdog/pcwd.c
index 28a404adf8f0..6d44ca68312d 100644
--- a/drivers/char/watchdog/pcwd.c
+++ b/drivers/char/watchdog/pcwd.c
@@ -269,7 +269,7 @@ static inline void pcwd_get_firmware(void)
269{ 269{
270 int one, ten, hund, minor; 270 int one, ten, hund, minor;
271 271
272 sprintf(pcwd_private.fw_ver_str, "ERROR"); 272 strcpy(pcwd_private.fw_ver_str, "ERROR");
273 273
274 if (set_command_mode()) { 274 if (set_command_mode()) {
275 one = send_isa_command(CMD_ISA_VERSION_INTEGER); 275 one = send_isa_command(CMD_ISA_VERSION_INTEGER);