Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/factor Properly print string.
details: https://anonhg.NetBSD.org/src/rev/e629e9060a68
branches: trunk
changeset: 765283:e629e9060a68
user: joerg <joerg%NetBSD.org@localhost>
date: Mon May 23 22:49:59 2011 +0000
description:
Properly print string.
diffstat:
games/factor/factor.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 683bd2946f1e -r e629e9060a68 games/factor/factor.c
--- a/games/factor/factor.c Mon May 23 22:48:52 2011 +0000
+++ b/games/factor/factor.c Mon May 23 22:49:59 2011 +0000
@@ -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 @@
#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 @@
buf = BN_bn2dec(num);
if (buf == NULL)
return; /* XXX do anything here? */
- fprintf(fp, buf);
+ fprintf(fp, "%s", buf);
free(buf);
}
Home |
Main Index |
Thread Index |
Old Index