From owner-svn-src-head@FreeBSD.ORG Tue Jan 4 00:39:57 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01A94106566B; Tue, 4 Jan 2011 00:39:57 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E549E8FC14; Tue, 4 Jan 2011 00:39:56 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p040duNW012485; Tue, 4 Jan 2011 00:39:56 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p040dugD012482; Tue, 4 Jan 2011 00:39:56 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <201101040039.p040dugD012482@svn.freebsd.org> From: Ed Maste Date: Tue, 4 Jan 2011 00:39:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216945 - head/libexec/ftpd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 00:39:57 -0000 Author: emaste Date: Tue Jan 4 00:39:56 2011 New Revision: 216945 URL: http://svn.freebsd.org/changeset/base/216945 Log: Make format string a string literal. (Discovered by clang.) MFC After: 1 week Modified: head/libexec/ftpd/ftpd.c Modified: head/libexec/ftpd/ftpd.c ============================================================================== --- head/libexec/ftpd/ftpd.c Tue Jan 4 00:16:38 2011 (r216944) +++ head/libexec/ftpd/ftpd.c Tue Jan 4 00:39:56 2011 (r216945) @@ -2153,7 +2153,7 @@ send_data(FILE *instr, FILE *outstr, siz } } ENDXFER; - reply(226, msg); + reply(226, "%s", msg); return (0); }