mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +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)) {
|
if (FAIL == executeCommand(cmd, retvals, logDEBUG1)) {
|
||||||
strcpy(mess,
|
strcpy(mess,
|
||||||
"Could not program fpga. (could not delete old file: ");
|
"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");
|
strcat(mess, "\n");
|
||||||
LOG(logERROR, (mess));
|
LOG(logERROR, (mess));
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user