]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.c
showsurfaces 3: refactor it a bit; disable r_water in this mode
[xonotic/darkplaces.git] / common.c
index 499dccfd49f3ab7a9ca8e956e0982da6c92a3683..c9248464517a1642835cd06effb11b7af39b76c5 100644 (file)
--- a/common.c
+++ b/common.c
@@ -2030,7 +2030,7 @@ void InfoString_SetValue(char *buffer, size_t bufferlength, const char *key, con
                // set the key/value and append the remaining text
                char tempbuffer[4096];
                strlcpy(tempbuffer, buffer + pos2, sizeof(tempbuffer));
-               dpsnprintf(buffer + pos, sizeof(buffer) - pos, "\\%s\\%s%s", key, value, tempbuffer);
+               dpsnprintf(buffer + pos, bufferlength - pos, "\\%s\\%s%s", key, value, tempbuffer);
        }
        else
        {