mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-20 02:40:03 +02:00
fix server sizeof bug
This commit is contained in:
parent
3a5ceca522
commit
36783067f2
@ -73,7 +73,7 @@ int deleteOldFile(char *mess) {
|
||||
if (FAIL == executeCommand(cmd, retvals, logDEBUG1)) {
|
||||
strcpy(mess,
|
||||
"Could not program fpga. (could not delete old file: ");
|
||||
strncat(mess, retvals, sizeof(mess) - strlen(mess) - 1);
|
||||
strncat(mess, retvals, MAX_STR_LENGTH - strlen(mess) - 1);
|
||||
strcat(mess, "\n");
|
||||
LOG(logERROR, (mess));
|
||||
return FAIL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user