From 68fc11857ad8ef4c58f5169b209ff6872b0e625c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 4 Mar 2020 21:10:23 +0900 Subject: [PATCH] [gamecode] Fix a string splitting error --- libs/gamecode/pr_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/gamecode/pr_debug.c b/libs/gamecode/pr_debug.c index 6a4703724..c102b46f8 100644 --- a/libs/gamecode/pr_debug.c +++ b/libs/gamecode/pr_debug.c @@ -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;