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

Get rid of an unnecessary strcat() call

CID 33567
parent 19da4f1a
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment