13 lines
419 B
Plaintext
13 lines
419 B
Plaintext
$OpenBSD: patch-gplink_map_c,v 1.2 2004/01/30 01:01:11 naddy Exp $
|
|
--- gplink/map.c.orig 2004-01-17 13:33:51.000000000 +1100
|
|
+++ gplink/map.c 2004-01-25 20:36:31.000000000 +1100
|
|
@@ -44,7 +44,7 @@ map_line(const char *format, ...)
|
|
return;
|
|
|
|
va_start(args, format);
|
|
- vsprintf(buffer, format, args);
|
|
+ vsnprintf(buffer, sizeof(buffer), format, args);
|
|
va_end(args);
|
|
|
|
fprintf(state.map.f, "%s\n", buffer);
|