diff options
author | joerg <joerg@pkgsrc.org> | 2012-12-24 21:08:42 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-12-24 21:08:42 +0000 |
commit | 9edcac034085d97ce4c77ec3b7720eb4887d98dc (patch) | |
tree | b8fbe402bc074b6f5536b5e652357fd540d64e4b /geography/garmin-utils | |
parent | d34b2d0897ac1b781838e22d36ffe2611e186166 (diff) | |
download | pkgsrc-9edcac034085d97ce4c77ec3b7720eb4887d98dc.tar.gz |
Don't use non-literal strings as format strings.
Diffstat (limited to 'geography/garmin-utils')
-rw-r--r-- | geography/garmin-utils/distinfo | 4 | ||||
-rw-r--r-- | geography/garmin-utils/patches/patch-ab | 33 |
2 files changed, 32 insertions, 5 deletions
diff --git a/geography/garmin-utils/distinfo b/geography/garmin-utils/distinfo index 18db6adee5a..6d075ad9831 100644 --- a/geography/garmin-utils/distinfo +++ b/geography/garmin-utils/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.13 2009/08/10 09:47:23 hasso Exp $ +$NetBSD: distinfo,v 1.14 2012/12/24 21:08:42 joerg Exp $ SHA1 (garmin-utils-2.5.tar.gz) = 1b7ee9936a691bf5e5466a3efd052f71dd3cb63c RMD160 (garmin-utils-2.5.tar.gz) = c32dd4b9efaef80fb203059ac399e52d0cd86fbe Size (garmin-utils-2.5.tar.gz) = 174336 bytes SHA1 (patch-aa) = 3a04f974bd0eae012977dc3a8090b19032463ce7 -SHA1 (patch-ab) = d67baae2dc895a0c0c770ae5f73538d9aa460116 +SHA1 (patch-ab) = d6c9c41b4c84b2bf12afc387ec17dc6be1237975 SHA1 (patch-ac) = 78c49d3fa7cc106e0e4bf4e0eb7e191ac0456d11 diff --git a/geography/garmin-utils/patches/patch-ab b/geography/garmin-utils/patches/patch-ab index a05e18a0c92..604b9f48740 100644 --- a/geography/garmin-utils/patches/patch-ab +++ b/geography/garmin-utils/patches/patch-ab @@ -1,7 +1,7 @@ -$NetBSD: patch-ab,v 1.5 2009/08/01 05:26:24 hasso Exp $ +$NetBSD: patch-ab,v 1.6 2012/12/24 21:08:43 joerg Exp $ ---- lib/gps1.c.orig 2009-07-30 23:13:40 +0300 -+++ lib/gps1.c 2009-07-30 23:14:17 +0300 +--- lib/gps1.c.orig 2006-07-14 02:35:53.000000000 +0000 ++++ lib/gps1.c @@ -23,6 +23,7 @@ /* * Define the various serial I/O types @@ -10,3 +10,30 @@ $NetBSD: patch-ab,v 1.5 2009/08/01 05:26:24 hasso Exp $ #define BSD 0 #define Linux 1 +@@ -207,7 +208,7 @@ gps_read(gps_handle gps, u_char * val, i + switch (stat) { + case -1: + if (gps_state.debug) +- warn(gps_state.name); ++ warn("%s", gps_state.name); + return -1; + case 0: + return 0; +@@ -218,7 +219,7 @@ gps_read(gps_handle gps, u_char * val, i + GPS_BUF_LEN); + if (gps_state.bufcnt <= 0) { + if (gps_state.debug) +- warn(gps_state.name); ++ warn("%s", gps_state.name); + return -1; + } + if (gps_state.debug > 4) { +@@ -254,7 +255,7 @@ gps_write(gps_handle gps, const u_char * + buf += written; + } else { + if (gps_state.debug) +- warn(gps_state.name); ++ warn("%s", gps_state.name); + return -1; + } + } |