blob: d10a9b9a463618042f4ff2cfb0cd06e9475ef15a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff -u regex.orig/regerror.c regex/regerror.c
--- regex.orig/regerror.c 2011-08-09 17:31:11.000000000 +0800
+++ regex/regerror.c 2011-08-09 17:29:53.000000000 +0800
@@ -82,7 +82,7 @@
if (errcode®_ITOA) {
if (r->code >= 0)
- (void) strcpy(convbuf, r->name);
+ (void) strncpy(convbuf, r->name, 50);
else
sprintf(convbuf, "REG_0x%x", target);
assert(strlen(convbuf) < sizeof(convbuf));
|