progs/pixie.c: Fix format security bugs.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 22 Jun 2013 15:24:52 +0000 (16:24 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 28 Jun 2013 23:31:54 +0000 (00:31 +0100)
Really not very impressive.

progs/pixie.c

index c501236..cb22c0a 100644 (file)
@@ -1378,9 +1378,9 @@ int main(int argc, char *argv[])
     dstr d = DSTR_INIT;
     int rc = l_report(&lm, &d);
     if (rc < 0)
-      die(EXIT_FAILURE, d.buf);
+      die(EXIT_FAILURE, "%s", d.buf);
     else if (rc && verbose) {
-      pxlog(d.buf);
+      pxlog("%s", d.buf);
       pxlog("couldn't lock passphrase buffer");
     }
     dstr_destroy(&d);