diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | regex.c | 8 |
2 files changed, 11 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2002-01-16 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 02846] + * regex.c (newRegex0): check msg + 2002-01-16 Fumitoshi UKAI <ukai@debian.or.jp> * [w3m-dev 02845] @@ -1988,4 +1993,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.225 2002/01/15 18:26:13 ukai Exp $ +$Id: ChangeLog,v 1.226 2002/01/16 02:50:04 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: regex.c,v 1.11 2002/01/15 18:26:13 ukai Exp $ */ +/* $Id: regex.c,v 1.12 2002/01/16 02:50:04 ukai Exp $ */ /* * regex: Regular expression pattern match library * @@ -172,8 +172,10 @@ newRegex0(char **ex, int igncase, Regex *regex, char **msg, int level) #endif else *(st_ptr++) = (unsigned char)*(p++); - if (st_ptr >= ®ex->storage[STORAGE_MAX]) - *msg = "Regular expression too long"; + if (st_ptr >= ®ex->storage[STORAGE_MAX]) { + if (msg) + *msg = "Regular expression too long"; + } return NULL; } *(st_ptr++) = '\0'; |