don't use dynamic variable length array
This commit is contained in:
parent
8e65a9db56
commit
a7b3123405
|
@ -58,7 +58,7 @@ pic_regexp_regexp(pic_state *pic)
|
|||
reg->flags = flags;
|
||||
|
||||
if ((err = regcomp(®->reg, ptrn, cflags)) != 0) {
|
||||
char errbuf[regerror(err, ®->reg, NULL, 0)];
|
||||
char errbuf[256];
|
||||
|
||||
regerror(err, ®->reg, errbuf, sizeof errbuf);
|
||||
regexp_dtor(pic, ®->reg);
|
||||
|
|
Loading…
Reference in New Issue