blob: ce35b3b10f2b5610cafa9a4566ae64a9e23c09e9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/src/osdep/unix/flocklnx.c
2+++ b/src/osdep/unix/flocklnx.c
3@@ -57,7 +57,7 @@ int safe_flock (int fd,int op)
4 case ENOLCK: /* lock table is full */
5 sprintf (tmp,"File locking failure: %s",strerror (errno));
6 mm_log (tmp,WARN); /* give the user a warning of what happened */
7- if (!logged++) syslog (LOG_ERR,tmp);
8+ if (!logged++) syslog (LOG_ERR, "%s", tmp);
9 /* return failure if non-blocking lock */
10 if (op & LOCK_NB) return -1;
11 sleep (5); /* slow down in case it loops */