diff options
author | joerg <joerg@pkgsrc.org> | 2013-09-10 14:40:33 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-09-10 14:40:33 +0000 |
commit | 0b9c88a4d6d2508f5fe23d62fa79de295a6f9476 (patch) | |
tree | 14cae51dd600604fab69a94cb1b03b31fdb47293 /pkgtools/pkgin | |
parent | 5ac86f3aaa037c54c02c5dc09d61457e6ef2aa09 (diff) | |
download | pkgsrc-0b9c88a4d6d2508f5fe23d62fa79de295a6f9476.tar.gz |
Don't pass non-literal strings as format string.
Diffstat (limited to 'pkgtools/pkgin')
-rw-r--r-- | pkgtools/pkgin/distinfo | 3 | ||||
-rw-r--r-- | pkgtools/pkgin/patches/patch-main.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/pkgtools/pkgin/distinfo b/pkgtools/pkgin/distinfo index e24eca8a069..2db6fc67a31 100644 --- a/pkgtools/pkgin/distinfo +++ b/pkgtools/pkgin/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.29 2013/09/02 10:38:04 jperkin Exp $ +$NetBSD: distinfo,v 1.30 2013/09/10 14:40:33 joerg Exp $ SHA1 (3859170568fbe4fe21b5660dbaeca8d65ac10f1b.tar.gz) = 58d06c5884dd490508f609c5320542c919afe0c7 RMD160 (3859170568fbe4fe21b5660dbaeca8d65ac10f1b.tar.gz) = e783457044af3b41a784012f4d0961ed87e8c4af Size (3859170568fbe4fe21b5660dbaeca8d65ac10f1b.tar.gz) = 187873 bytes SHA1 (patch-actions.c) = 5ce6ac2051c0f9e7048926b3b5f41d8c17d98252 +SHA1 (patch-main.c) = 1566a310534ff7c9080fbf4c28d510a3c7102274 diff --git a/pkgtools/pkgin/patches/patch-main.c b/pkgtools/pkgin/patches/patch-main.c new file mode 100644 index 00000000000..767edcdaf15 --- /dev/null +++ b/pkgtools/pkgin/patches/patch-main.c @@ -0,0 +1,16 @@ +$NetBSD: patch-main.c,v 1.1 2013/09/10 14:40:33 joerg Exp $ + +--- main.c.orig 2013-09-09 02:13:47.000000000 +0000 ++++ main.c +@@ -301,10 +301,9 @@ main(int argc, char *argv[]) + static void + missing_param(int argc, int nargs, const char *msg) + { +- const char *foo = msg; + + if (argc < nargs) +- errx(EXIT_FAILURE, foo); ++ errx(EXIT_FAILURE, "%s", msg); + } + + /* find command index */ |