projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369fa25
)
[WATCHDOG] pcwd.c sprintf/strcpy fix
author
Wim Van Sebroeck
<wim@iguana.be>
Thu, 2 Mar 2006 19:05:16 +0000
(20:05 +0100)
committer
Wim 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
patch
|
blob
|
history
diff --git
a/drivers/char/watchdog/pcwd.c
b/drivers/char/watchdog/pcwd.c
index
28a404a
..
6d44ca6
100644
(file)
--- 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;
- s
printf
(pcwd_private.fw_ver_str, "ERROR");
+ s
trcpy
(pcwd_private.fw_ver_str, "ERROR");
if (set_command_mode()) {
one = send_isa_command(CMD_ISA_VERSION_INTEGER);