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

22 lines
662 B
Plaintext

$OpenBSD: patch-gpal_symbol_c,v 1.1 2004/01/30 01:01:11 naddy Exp $
--- gpal/symbol.c.orig 2004-01-26 10:44:31.000000000 +1100
+++ gpal/symbol.c 2004-01-26 10:44:52.000000000 +1100
@@ -60,7 +60,7 @@ mangle_name2(char *first, char *second)
{
char buffer[BUFSIZ];
- sprintf(buffer, "%s.%s", first, second);
+ snprintf(buffer, sizeof(buffer), "%s.%s", first, second);
return gp_lower_case(buffer);
}
@@ -70,7 +70,7 @@ mangle_name3(char *first, char *second,
{
char buffer[BUFSIZ];
- sprintf(buffer, "%s.%s.%s", first, second, third);
+ snprintf(buffer, sizeof(buffer), "%s.%s.%s", first, second, third);
return gp_lower_case(buffer);
}