svn commit: r268928 - head/lib/libc/stdio
Pedro F. Giffuni
pfg at FreeBSD.org
Sun Jul 20 20:29:29 UTC 2014
Author: pfg
Date: Sun Jul 20 20:29:28 2014
New Revision: 268928
URL: http://svnweb.freebsd.org/changeset/base/268928
Log:
Const-ify a character string.
Obtained from: Apple Inc. (Libc 997.90.3)
MFC after: 3 days
Modified:
head/lib/libc/stdio/gets.c
Modified: head/lib/libc/stdio/gets.c
==============================================================================
--- head/lib/libc/stdio/gets.c Sun Jul 20 20:29:09 2014 (r268927)
+++ head/lib/libc/stdio/gets.c Sun Jul 20 20:29:28 2014 (r268928)
@@ -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-head
mailing list