diff options
author | pfg <pfg@FreeBSD.org> | 2014-07-23 02:55:03 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-07-23 02:55:03 +0000 |
commit | 797038915a0ebead2284123bccda6c3a7bb131ac (patch) | |
tree | d1676f35ccb00a0eaf9a2ba54ac9540674c1ff5c | |
parent | 70f7d126e3856e0f9bee5221f3e8ffcb7e2434ab (diff) | |
download | FreeBSD-src-797038915a0ebead2284123bccda6c3a7bb131ac.zip FreeBSD-src-797038915a0ebead2284123bccda6c3a7bb131ac.tar.gz |
MFC r268928:
Const-ify a character string.
Obtained from: Apple Inc. (Libc 997.90.3)
-rw-r--r-- | lib/libc/stdio/gets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/gets.c b/lib/libc/stdio/gets.c index c7c1c2f..c943851 100644 --- a/lib/libc/stdio/gets.c +++ b/lib/libc/stdio/gets.c @@ -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); |