- 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-d3aeb78583b8master
parent
3f9c3bf10b
commit
de852623ee
|
@ -119,6 +119,9 @@ CVS code -
|
||||||
- Add a better string matching sequence that includes escaped
|
- Add a better string matching sequence that includes escaped
|
||||||
quotes (thanks to Carl E. Lindberg, who doesn't even know he
|
quotes (thanks to Carl E. Lindberg, who doesn't even know he
|
||||||
helped ;-)
|
helped ;-)
|
||||||
|
- rcfile.c:
|
||||||
|
parse_colors()
|
||||||
|
- Stop infinite loop when syntax doesn't begin with " char.
|
||||||
- utils.c:
|
- utils.c:
|
||||||
charalloc()
|
charalloc()
|
||||||
- Switch from using calloc() to using malloc(). (David
|
- Switch from using calloc() to using malloc(). (David
|
||||||
|
|
1
rcfile.c
1
rcfile.c
|
@ -371,6 +371,7 @@ void parse_colors(char *ptr)
|
||||||
|
|
||||||
if (*ptr != '"') {
|
if (*ptr != '"') {
|
||||||
rcfile_error(_("regex strings must begin and end with a \" character\n"));
|
rcfile_error(_("regex strings must begin and end with a \" character\n"));
|
||||||
|
ptr = parse_next_regex(ptr);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
Loading…
Reference in New Issue