X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=com_infostring.c;fp=com_infostring.c;h=778bf82d6df4c93415ea2a99cf5adecd5a720090;hb=906474fc025ff5b0b8799d9045a581bceafd2e7d;hp=8412e489edf370737fefacee261a5e8d3d663be7;hpb=21fa9010ae6de8792f36cca08cb77aaa95d4b928;p=xonotic%2Fdarkplaces.git diff --git a/com_infostring.c b/com_infostring.c index 8412e489..778bf82d 100644 --- a/com_infostring.c +++ b/com_infostring.c @@ -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); } }