summaryrefslogtreecommitdiffstats
path: root/factor
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-05-23 22:49:59 +0000
committerjoerg <joerg@NetBSD.org>2011-05-23 22:49:59 +0000
commitdfc4f283126d2186a83011182f21659dd08bb35e (patch)
tree9da42e101078d70b2768aeac7378565dd6212f94 /factor
parent9ce1aef25e2dbc2ba90cefbb42dc0466f9249da3 (diff)
downloadbsdgames-darwin-dfc4f283126d2186a83011182f21659dd08bb35e.tar.gz
bsdgames-darwin-dfc4f283126d2186a83011182f21659dd08bb35e.tar.zst
bsdgames-darwin-dfc4f283126d2186a83011182f21659dd08bb35e.zip
Properly print string.
Diffstat (limited to 'factor')
-rw-r--r--factor/factor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/factor/factor.c b/factor/factor.c
index 10de005d..e48c98e3 100644
--- a/factor/factor.c
+++ b/factor/factor.c
@@ -1,4 +1,4 @@
-/* $NetBSD: factor.c,v 1.24 2010/05/15 21:22:39 joerg Exp $ */
+/* $NetBSD: factor.c,v 1.25 2011/05/23 22:49:59 joerg Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\
#if 0
static char sccsid[] = "@(#)factor.c 8.4 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: factor.c,v 1.24 2010/05/15 21:22:39 joerg Exp $");
+__RCSID("$NetBSD: factor.c,v 1.25 2011/05/23 22:49:59 joerg Exp $");
#endif
#endif /* not lint */
@@ -263,7 +263,7 @@ BN_print_dec_fp(FILE *fp, const BIGNUM *num)
buf = BN_bn2dec(num);
if (buf == NULL)
return; /* XXX do anything here? */
- fprintf(fp, buf);
+ fprintf(fp, "%s", buf);
free(buf);
}