summary refs log tree commit diff
path: root/nq.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-08-03 21:18:24 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-08-03 21:18:24 +0200
commit689b9f3de638f7f2b0cf304ee3bf960e91cad9eb (patch)
tree4b922f5039a0277a467d92b71f095fe6322bbb32 /nq.c
parent6bf5b7f2c5b1d6d1fe52fc17d21f0b4d63eb367b (diff)
downloadnq-689b9f3de638f7f2b0cf304ee3bf960e91cad9eb.tar.gz
nq-689b9f3de638f7f2b0cf304ee3bf960e91cad9eb.tar.xz
nq-689b9f3de638f7f2b0cf304ee3bf960e91cad9eb.zip
fix missed sprintf of int64_t
Diffstat (limited to 'nq.c')
-rw-r--r--nq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nq.c b/nq.c
index fdae6c0..9662560 100644
--- a/nq.c
+++ b/nq.c
@@ -183,7 +183,7 @@ usage:
 
 	/* create and lock lockfile.  since this cannot be done in one step,
 	   use a different filename first.  */
-	sprintf(lockfile, ".,%011lx.%d", ms, getpid());
+	sprintf(lockfile, ".,%011" PRIx64 ".%d", ms, getpid());
 	lockfd = openat(dirfd, lockfile,
 	    O_CREAT | O_EXCL | O_RDWR | O_APPEND, 0600);
 	if (lockfd < 0) {