mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* man2hlp.c (handle_command): Make clear that unsupported
command is a warning, not an error. Avoid unsafe strcat().
This commit is contained in:
parent
cac0accb55
commit
d520b9f76f
@ -1,5 +1,8 @@
|
||||
2002-09-05 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* man2hlp.c (handle_command): Make clear that unsupported
|
||||
command is a warning, not an error. Avoid unsafe strcat().
|
||||
|
||||
* view.c (view_mode_callback): Eliminate, use the default
|
||||
callback.
|
||||
|
||||
|
@ -459,10 +459,10 @@ handle_command (char *buffer)
|
||||
} else {
|
||||
/* Other commands are ignored */
|
||||
/* There is no memmove on some systems */
|
||||
char buf[BUFFER_SIZE];
|
||||
strcpy (buf, "Unsupported command ");
|
||||
strcat (buf, buffer);
|
||||
print_error (buf);
|
||||
char warn_str[BUFFER_SIZE];
|
||||
strcpy (warn_str, "Warning: unsupported command ");
|
||||
strncat (warn_str, buffer, sizeof(warn_str));
|
||||
print_error (warn_str);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user