This gets() used \r\n, which is doggish.
This commit is contained in:
parent
89e45c9b7f
commit
372e515faa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11064
@ -49,7 +49,7 @@ gets(buf)
|
||||
register char *s;
|
||||
static int warned;
|
||||
static char w[] =
|
||||
"warning: this program uses gets(), which is unsafe.\r\n";
|
||||
"warning: this program uses gets(), which is unsafe.\n";
|
||||
|
||||
if (!warned) {
|
||||
(void) write(STDERR_FILENO, w, sizeof(w) - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user