chiark / gitweb /
mtimeout.c: Fix (impossible) `printf' format-string bug.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 10 Jan 2014 14:54:29 +0000 (14:54 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 10 Jan 2014 14:54:29 +0000 (14:54 +0000)
mtimeout.c

index 9b22fb76f2dc438d32f978bccb9718d04ac57ffa..b376e8e6518daa0650ed5b722719348fea7d6f20 100644 (file)
@@ -361,7 +361,7 @@ static void timeout(struct timeval *now, void *p)
     ta = &t->ta[t->ip++];
     switch (ta->act) {
       case TA_MOAN:
-       moan(ta->u.s);
+       moan("%s", ta->u.s);
        break;
       case TA_KILL:
        kill(-t->kid, ta->u.i);