chiark / gitweb /
exec.c: Fix a format string stupidity.
[fwd] / exec.c
diff --git a/exec.c b/exec.c
index 92c0b266a075fe52254fa2ee58064c59df39165d..afd7942ba01db663a5ea68ec99a73032eac14b0e 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: