This gets() used \r\n, which is doggish.

This commit is contained in:
Bruce Evans 1995-09-29 18:52:47 +00:00
parent 89e45c9b7f
commit 372e515faa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11064

View File

@ -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);