From 7ebc2c26a2fd1d1a83e30877113875d83f63d7a9 Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Sun, 20 Jul 2014 20:29:28 +0000 Subject: [PATCH] Const-ify a character string. Obtained from: Apple Inc. (Libc 997.90.3) MFC after: 3 days --- lib/libc/stdio/gets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/stdio/gets.c b/lib/libc/stdio/gets.c index c7c1c2fa38c8..c9438515323a 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);