Module Name: src
Committed By: christos
Date: Wed Aug 17 14:07:45 UTC 2011
Modified Files:
src/usr.bin/gzip: unxz.c
Log Message:
fix non-literal format strings
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/gzip/unxz.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/gzip/unxz.c
diff -u src/usr.bin/gzip/unxz.c:1.3 src/usr.bin/gzip/unxz.c:1.4
--- src/usr.bin/gzip/unxz.c:1.3 Sat Jun 18 22:19:45 2011
+++ src/usr.bin/gzip/unxz.c Wed Aug 17 10:07:45 2011
@@ -111,11 +111,11 @@
break;
default:
- msg = "Unknown error (%d)";
+ maybe_errx("Unknown error (%d)", ret);
break;
}
+ maybe_errx("%s", msg);
- maybe_errx(msg, ret);
}
}
}