]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - com_infostring.c
com: rename BSD strlcpy and strlcat
[xonotic/darkplaces.git] / com_infostring.c
index 8412e489edf370737fefacee261a5e8d3d663be7..778bf82d6df4c93415ea2a99cf5adecd5a720090 100644 (file)
@@ -122,13 +122,13 @@ void InfoString_SetValue(char *buffer, size_t bufferlength, const char *key, con
        {
                // set the key/value and append the remaining text
                char tempbuffer[MAX_INPUTLINE];
-               strlcpy(tempbuffer, buffer + pos2, sizeof(tempbuffer));
+               dp_strlcpy(tempbuffer, buffer + pos2, sizeof(tempbuffer));
                dpsnprintf(buffer + pos, bufferlength - pos, "\\%s\\%s%s", key, value, tempbuffer);
        }
        else
        {
                // just remove the key from the text
-               strlcpy(buffer + pos, buffer + pos2, bufferlength - pos);
+               dp_strlcpy(buffer + pos, buffer + pos2, bufferlength - pos);
        }
 }