openbsd-ports/textproc/unrtf/patches/patch-output_c
db 0b159d3eb8 update to version 0.19.3
ok maintainer, sturm@
2005-05-15 18:09:40 +00:00

22 lines
771 B
Plaintext

$OpenBSD: patch-output_c,v 1.1 2005/05/15 18:09:41 db Exp $
--- output.c.orig Thu May 12 13:04:27 2005
+++ output.c Thu May 12 13:04:57 2005
@@ -218,7 +218,7 @@ op_begin_std_fontsize (OutputPersonality
if (!found_std_expr) {
if (op->fontsize_begin) {
char expr[16];
- sprintf (expr, "%d", size);
+ snprintf (expr, sizeof(expr), "%d", size);
printf (op->fontsize_begin, expr);
} else {
/* If we cannot write out a change for the exact
@@ -347,7 +347,7 @@ op_end_std_fontsize (OutputPersonality *
if (!found_std_expr) {
if (op->fontsize_end) {
char expr[16];
- sprintf (expr, "%d", size);
+ snprintf (expr, sizeof(expr), "%d", size);
printf (op->fontsize_end, expr);
} else {
/* If we cannot write out a change for the exact