From: Chris Allegretta Date: Wed, 18 Sep 2002 00:28:57 +0000 (+0000) Subject: - rcfile.c:parse_colors() - Stop infinite loop when syntax doesn't begin with " char X-Git-Tag: v1.1.11~11 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=de852623ee41f19e3cce616bba0fc52469d05bbb;p=nano.git - rcfile.c:parse_colors() - Stop infinite loop when syntax doesn't begin with " char git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1278 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index 10709eb3..c2d4d79b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -119,6 +119,9 @@ CVS code - - Add a better string matching sequence that includes escaped quotes (thanks to Carl E. Lindberg, who doesn't even know he helped ;-) +- rcfile.c: + parse_colors() + - Stop infinite loop when syntax doesn't begin with " char. - utils.c: charalloc() - Switch from using calloc() to using malloc(). (David diff --git a/rcfile.c b/rcfile.c index 8545526b..32c06fb4 100644 --- a/rcfile.c +++ b/rcfile.c @@ -371,6 +371,7 @@ void parse_colors(char *ptr) if (*ptr != '"') { rcfile_error(_("regex strings must begin and end with a \" character\n")); + ptr = parse_next_regex(ptr); continue; } ptr++;