Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2011 00:39:56 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r216945 - head/libexec/ftpd
Message-ID:  <201101040039.p040dugD012482@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 		}
 



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