openbsd-ports/devel/gputils/patches/patch-gpal_analyze_c

22 lines
670 B
Plaintext

$OpenBSD: patch-gpal_analyze_c,v 1.1 2004/01/30 01:01:11 naddy Exp $
--- gpal/analyze.c.orig 2004-01-26 10:48:21.000000000 +1100
+++ gpal/analyze.c 2004-01-26 10:48:48.000000000 +1100
@@ -53,7 +53,7 @@ analyze_error(tree *node, const char *fo
return;
va_start(args, format);
- vsprintf(buffer, format, args);
+ vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
if ((node) && (node->file_id)) {
@@ -80,7 +80,7 @@ analyze_warning(tree *node, const char *
return;
va_start(args, format);
- vsprintf(buffer, format, args);
+ vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
if ((node) && (node->file_id)) {