mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Deleted unneeded string terminators
Redundant after the usage of Q_strlcpy
This commit is contained in:
parent
cc45e20bac
commit
f0d985dfb9
1 changed files with 0 additions and 5 deletions
|
@ -5388,8 +5388,6 @@ PlayerDirectoryList(void)
|
|||
YQ2_COM_CHECK_OOM(s, "malloc()", MAX_QPATH * sizeof(char))
|
||||
|
||||
Q_strlcpy(s, t, MAX_QPATH);
|
||||
s[strlen(s)] = 0;
|
||||
|
||||
data[i] = s;
|
||||
}
|
||||
|
||||
|
@ -5505,9 +5503,7 @@ PlayerModelList(void)
|
|||
YQ2_COM_CHECK_OOM(s, "malloc()", MAX_DISPLAYNAME * sizeof(char))
|
||||
|
||||
StripExtension(t);
|
||||
|
||||
Q_strlcpy(s, t + 1, MAX_DISPLAYNAME);
|
||||
s[strlen(s)] = 0;
|
||||
|
||||
data[s_skinnames[mdl].num++] = s;
|
||||
}
|
||||
|
@ -5524,7 +5520,6 @@ PlayerModelList(void)
|
|||
YQ2_COM_CHECK_OOM(s, "malloc()", MAX_DISPLAYNAME * sizeof(char))
|
||||
|
||||
Q_strlcpy(s, t + 1, MAX_DISPLAYNAME);
|
||||
s[strlen(s)] = 0;
|
||||
|
||||
s_modelname.data[s_modelname.num++] = s;
|
||||
mdl = s_modelname.num;
|
||||
|
|
Loading…
Reference in a new issue