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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268928
@ -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