Skip to content
Snippets Groups Projects
Commit 6bbc20bc authored by Wim Van Sebroeck's avatar Wim Van Sebroeck
Browse files

[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: default avatarWim Van Sebroeck <wim@iguana.be>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
parent 369fa252
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment