From owner-svn-src-all@FreeBSD.ORG Sun Jul 20 20:29:29 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A5C7220; Sun, 20 Jul 2014 20:29:29 +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 27E6F289A; Sun, 20 Jul 2014 20:29:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6KKTTAB055123; Sun, 20 Jul 2014 20:29:29 GMT (envelope-from pfg@svn.freebsd.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6KKTTtk055122; Sun, 20 Jul 2014 20:29:29 GMT (envelope-from pfg@svn.freebsd.org) Message-Id: <201407202029.s6KKTTtk055122@svn.freebsd.org> From: "Pedro F. Giffuni" Date: Sun, 20 Jul 2014 20:29:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268928 - head/lib/libc/stdio X-SVN-Group: head 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: Sun, 20 Jul 2014 20:29:29 -0000 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);