Deleted unneeded string terminators

Redundant after the usage of Q_strlcpy
This commit is contained in:
Jaime Moreira 2022-10-15 10:41:38 -03:00
parent cc45e20bac
commit f0d985dfb9

View file

@ -5388,8 +5388,6 @@ PlayerDirectoryList(void)
YQ2_COM_CHECK_OOM(s, "malloc()", MAX_QPATH * sizeof(char)) YQ2_COM_CHECK_OOM(s, "malloc()", MAX_QPATH * sizeof(char))
Q_strlcpy(s, t, MAX_QPATH); Q_strlcpy(s, t, MAX_QPATH);
s[strlen(s)] = 0;
data[i] = s; data[i] = s;
} }
@ -5505,9 +5503,7 @@ PlayerModelList(void)
YQ2_COM_CHECK_OOM(s, "malloc()", MAX_DISPLAYNAME * sizeof(char)) YQ2_COM_CHECK_OOM(s, "malloc()", MAX_DISPLAYNAME * sizeof(char))
StripExtension(t); StripExtension(t);
Q_strlcpy(s, t + 1, MAX_DISPLAYNAME); Q_strlcpy(s, t + 1, MAX_DISPLAYNAME);
s[strlen(s)] = 0;
data[s_skinnames[mdl].num++] = s; data[s_skinnames[mdl].num++] = s;
} }
@ -5524,7 +5520,6 @@ PlayerModelList(void)
YQ2_COM_CHECK_OOM(s, "malloc()", MAX_DISPLAYNAME * sizeof(char)) YQ2_COM_CHECK_OOM(s, "malloc()", MAX_DISPLAYNAME * sizeof(char))
Q_strlcpy(s, t + 1, MAX_DISPLAYNAME); Q_strlcpy(s, t + 1, MAX_DISPLAYNAME);
s[strlen(s)] = 0;
s_modelname.data[s_modelname.num++] = s; s_modelname.data[s_modelname.num++] = s;
mdl = s_modelname.num; mdl = s_modelname.num;