Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Dec 2011 21:24:11 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228596 - head/games/factor
Message-ID:  <201112162124.pBGLOBEq027443@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Dec 16 21:24:11 2011
New Revision: 228596
URL: http://svn.freebsd.org/changeset/base/228596

Log:
  In games/factor/factor.c, fix a warning about a format string not being
  a literal.
  
  MFC after:	1 week

Modified:
  head/games/factor/factor.c

Modified: head/games/factor/factor.c
==============================================================================
--- head/games/factor/factor.c	Fri Dec 16 21:12:23 2011	(r228595)
+++ head/games/factor/factor.c	Fri Dec 16 21:24:11 2011	(r228596)
@@ -322,7 +322,7 @@ BN_print_dec_fp(FILE *fp, const BIGNUM *
 	buf = BN_bn2dec(num);
 	if (buf == NULL)
 		return;	/* XXX do anything here? */
-	fprintf(fp, buf);
+	fprintf(fp, "%s", buf);
 	free(buf);
 }
 



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