openbsd-ports/devel/gputils/patches/patch-libgputils_gpmessage_c
naddy cfb6182a3f Import gputils 0.11.7.
Submitted by Andrew Dalgleish <openbsd@ajd.net.au>.

GPUTILS is a collection of tools for the Microchip (TM) PIC
microcontrollers. It includes gpasm, gplink, and gplib.
2003-11-03 01:02:34 +00:00

40 lines
1.2 KiB
Plaintext

$OpenBSD: patch-libgputils_gpmessage_c,v 1.1.1.1 2003/11/03 01:02:36 naddy Exp $
--- libgputils/gpmessage.c.orig 2003-10-14 22:33:16.000000000 +1000
+++ libgputils/gpmessage.c 2003-10-14 22:34:12.000000000 +1000
@@ -48,7 +48,7 @@ gp_error(const char *format, ...)
return;
va_start(args, format);
- vsprintf(buffer, format, args);
+ vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
printf("%s %s\n", "error:", buffer);
@@ -71,7 +71,7 @@ gp_warning(const char *format, ...)
return;
va_start(args, format);
- vsprintf(buffer, format, args);
+ vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
printf("%s %s\n", "warning:", buffer);
@@ -94,7 +94,7 @@ gp_message(const char *format, ...)
return;
va_start(args, format);
- vsprintf(buffer, format, args);
+ vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
printf("%s %s\n", "message:", buffer);
@@ -115,7 +115,7 @@ gp_debug(const char *format, ...)
return;
va_start(args, format);
- vsprintf(buffer, format, args);
+ vsnprintf(buffer, sizeof(buffer), format, args);
va_end(args);
printf("%s %s\n", "debug:", buffer);