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

Fix printf formatting issue in error message

GCC and Coverity (x 2) both flagged this one.
parent a28da743
No related branches found
No related tags found
No related merge requests found
......@@ -295,7 +295,8 @@ int smb_locksmbhdr(smb_t* smb)
++count;
SLEEP((count / 10) * smb->retry_delay);
}
safe_snprintf(smb->last_error,sizeof(smb->last_error),"%s timeout locking message base after %d seconds", __FUNCTION__, time(NULL) - start);
safe_snprintf(smb->last_error,sizeof(smb->last_error),"%s timeout locking message base after %d seconds"
, __FUNCTION__, (int)(time(NULL) - start));
return(SMB_ERR_TIMEOUT);
}
......
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