svn commit: r269007 - stable/10/lib/libc/stdio
Pedro F. Giffuni
pfg at FreeBSD.org
Wed Jul 23 02:55:04 UTC 2014
Author: pfg
Date: Wed Jul 23 02:55:03 2014
New Revision: 269007
URL: http://svnweb.freebsd.org/changeset/base/269007
Log:
MFC r268928:
Const-ify a character string.
Obtained from: Apple Inc. (Libc 997.90.3)
Modified:
stable/10/lib/libc/stdio/gets.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/lib/libc/stdio/gets.c
==============================================================================
--- stable/10/lib/libc/stdio/gets.c Wed Jul 23 00:49:35 2014 (r269006)
+++ stable/10/lib/libc/stdio/gets.c Wed Jul 23 02:55:03 2014 (r269007)
@@ -52,7 +52,7 @@ gets(char *buf)
int c;
char *s;
static int warned;
- static char w[] =
+ static const char w[] =
"warning: this program uses gets(), which is unsafe.\n";
FLOCKFILE(stdin);
More information about the svn-src-stable
mailing list