Skip to content
Snippets Groups Projects
Commit 55d6d6b8 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Get rid of an unnecessary strcat() call

CID 33567
parent 87567275
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -709,9 +709,8 @@ int putusername(scfg_t* cfg, int number, const char *name)
return(-3);
}
if(length<(((long)number-1)*(LEN_ALIAS+2))) {
SAFEPRINTF2(str,"%*s",LEN_ALIAS,nulstr);
SAFEPRINTF2(str,"%*s\r\n",LEN_ALIAS,nulstr);
memset(str,ETX,LEN_ALIAS);
strcat(str,crlf);
lseek(file,0L,SEEK_END);
while(filelength(file)<((long)number*(LEN_ALIAS+2)))
write(file,str,(LEN_ALIAS+2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment