exec.c: Fix a format string stupidity.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 29 Jun 2013 13:57:39 +0000 (14:57 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 29 Jun 2013 13:57:39 +0000 (14:57 +0100)
exec.c

diff --git a/exec.c b/exec.c
index 92c0b26..afd7942 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -272,8 +272,9 @@ static int rlimit_option(xlimit *xl, scanner *sc)
       break;
     case w_soft:
       if (v > rl->rlim_max)
-       error(sc, "soft limit %l exceeds hard limit %l for %s",
-             v, rl->rlim_max, chosen->rname);
+       error(sc, "soft limit %lu exceeds hard limit %lu for %s",
+             (unsigned long)v, (unsigned long)rl->rlim_max,
+             chosen->rname);
       rl->rlim_cur = v;
       break;
     case w_hard: