Const-ify a character string.
Obtained from: Apple Inc. (Libc 997.90.3) MFC after: 3 days
This commit is contained in:
parent
4d34663be3
commit
7ebc2c26a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user