mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 09:02:08 +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
|
// paths come after, then the null terminator
|
||||||
for (i = 1, s = source_path_string; *s; s++) {
|
for (i = 1, s = source_path_string; *s; s++) {
|
||||||
if (*s == ';') {
|
if (*s == ';') {
|
||||||
*s++ = 0;
|
*s = 0;
|
||||||
source_paths[i++] = s;
|
source_paths[i++] = s + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
source_paths[i] = 0;
|
source_paths[i] = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue