svn commit: r268928 - head/lib/libc/stdio

看板FB_svn作者時間11年前 (2014/07/21 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
文章代碼(AID): #1Jp2T3zu (FB_svn)