From owner-svn-src-all@FreeBSD.ORG Wed Jul 23 02:55:04 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 69E11D43; Wed, 23 Jul 2014 02:55:04 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55F6E23C9; Wed, 23 Jul 2014 02:55:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6N2t4MC066091; Wed, 23 Jul 2014 02:55:04 GMT (envelope-from pfg@svn.freebsd.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6N2t4sx066090; Wed, 23 Jul 2014 02:55:04 GMT (envelope-from pfg@svn.freebsd.org) Message-Id: <201407230255.s6N2t4sx066090@svn.freebsd.org> From: "Pedro F. Giffuni" Date: Wed, 23 Jul 2014 02:55:04 +0000 (UTC) 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 X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2014 02:55:04 -0000 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);