pkgsrc/devel/cscope/patches/patch-al
wiz a92d7b4517 Update to 15.6:
Some security problems have been addressed, and overall stability
has improved. There are no new features.

(The security problems were already fixed in pkgsrc.)
2007-01-06 22:45:49 +00:00

13 lines
496 B
Text

$NetBSD: patch-al,v 1.3 2007/01/06 22:45:49 wiz Exp $
--- src/find.c.orig 2006-09-30 10:13:00.000000000 +0200
+++ src/find.c
@@ -673,7 +673,7 @@ findinit(char *pattern)
/* must be an exact match */
/* note: regcomp doesn't recognize ^*keypad$ as a syntax error
unless it is given as a single arg */
- (void) sprintf(buf, "^%s$", s);
+ (void) snprintf(buf, sizeof(buf), "^%s$", s);
if (regcomp (&regexp, buf, REG_EXTENDED | REG_NOSUB) != 0) {
return(REGCMPERROR);
}