Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/gzip fix non-literal format strings
details: https://anonhg.NetBSD.org/src/rev/b15e9ec506fc
branches: trunk
changeset: 768488:b15e9ec506fc
user: christos <christos%NetBSD.org@localhost>
date: Wed Aug 17 14:07:45 2011 +0000
description:
fix non-literal format strings
diffstat:
usr.bin/gzip/unxz.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 7b98cc5034a0 -r b15e9ec506fc usr.bin/gzip/unxz.c
--- a/usr.bin/gzip/unxz.c Wed Aug 17 14:07:31 2011 +0000
+++ b/usr.bin/gzip/unxz.c Wed Aug 17 14:07:45 2011 +0000
@@ -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);
}
}
}
Home |
Main Index |
Thread Index |
Old Index