Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2014 02:55:04 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r269007 - stable/10/lib/libc/stdio
Message-ID:  <201407230255.s6N2t4sx066090@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Wed Jul 23 02:55:03 2014
New Revision: 269007
URL: http://svnweb.freebsd.org/changeset/base/269007

Log:
  MFC	r268928:
  Const-ify a character string.
  
  Obtained from:	Apple Inc. (Libc 997.90.3)

Modified:
  stable/10/lib/libc/stdio/gets.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/stdio/gets.c
==============================================================================
--- stable/10/lib/libc/stdio/gets.c	Wed Jul 23 00:49:35 2014	(r269006)
+++ stable/10/lib/libc/stdio/gets.c	Wed Jul 23 02:55:03 2014	(r269007)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407230255.s6N2t4sx066090>