Replace strncpy usage with Q_strncpyz

This commit is contained in:
Zack Middleton authored and Tim Angus committed 2025-07-24 09:47:13 +01:00
1 parent c8553223ec
commit 1132abe3dc
10 files changed
+16 -34

No files matched your search

+1 -2
View File
@@ -235,8 +235,7 @@ int Export_BotLibVarGet(const char *var_name, char *value, int size)
char *varvalue;
varvalue = LibVarGetString(var_name);
strncpy(value, varvalue, size-1);
value[size-1] = '\0';
Q_strncpyz(value, varvalue, size);
return BLERR_NOERROR;
} //end of the function Export_BotLibVarGet
//===========================================================================