mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 10:21:21 +00:00
[gamecode] Fix a string splitting error
This commit is contained in:
parent
c214797e97
commit
68fc11857a
1 changed files with 2 additions and 2 deletions
|
@ -198,8 +198,8 @@ source_path_f (cvar_t *var)
|
|||
// paths come after, then the null terminator
|
||||
for (i = 1, s = source_path_string; *s; s++) {
|
||||
if (*s == ';') {
|
||||
*s++ = 0;
|
||||
source_paths[i++] = s;
|
||||
*s = 0;
|
||||
source_paths[i++] = s + 1;
|
||||
}
|
||||
}
|
||||
source_paths[i] = 0;
|
||||
|
|
Loading…
Reference in a new issue