mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
don't hang when processing \{N} escape sequences and fix a comment
This commit is contained in:
parent
15c46c3b27
commit
36fe939ea5
2 changed files with 2 additions and 2 deletions
|
@ -1020,7 +1020,7 @@ int PR_RelocateBuiltins (progs_t *pr);
|
|||
temporary strings, as well as mutable strings using dstrings.
|
||||
|
||||
Permanent strings are either supplied by the progs (+ve string index) or
|
||||
set the the main program using PR_SetString(). Permanent strings can never
|
||||
set by the main program using PR_SetString(). Permanent strings can never
|
||||
be altered and will exist until the next progs load.
|
||||
|
||||
Dynamic strings can be freed at any time, but not altered.
|
||||
|
|
|
@ -605,7 +605,7 @@ make_string (char *token, char **end)
|
|||
while (*token && *token != '}'
|
||||
&& isdigit ((unsigned char)*token)) {
|
||||
c *= 10;
|
||||
c += *token - '0';
|
||||
c += *token++ - '0';
|
||||
}
|
||||
if (!*token)
|
||||
error (0, "EOF inside quote");
|
||||
|
|
Loading…
Reference in a new issue