diff options
author | joerg <joerg@pkgsrc.org> | 2013-10-10 00:02:17 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-10-10 00:02:17 +0000 |
commit | 8c192b09992ea631472cf398d4dc1ac9c1130a74 (patch) | |
tree | 77284fac760e7b5cf9fb3d373354e273acff56d9 /comms/birda/patches | |
parent | 72da54481ed71f993da541aa4329534239a5a4a4 (diff) | |
download | pkgsrc-8c192b09992ea631472cf398d4dc1ac9c1130a74.tar.gz |
Fix undefined and broken loop. Fix obviously broken format string.
Bump revision.
Diffstat (limited to 'comms/birda/patches')
-rw-r--r-- | comms/birda/patches/patch-src_mkobexcard.c | 13 | ||||
-rw-r--r-- | comms/birda/patches/patch-src_options.c | 13 | ||||
-rw-r--r-- | comms/birda/patches/patch-src_sendobex.c | 15 |
3 files changed, 38 insertions, 3 deletions
diff --git a/comms/birda/patches/patch-src_mkobexcard.c b/comms/birda/patches/patch-src_mkobexcard.c new file mode 100644 index 00000000000..823dd929bf6 --- /dev/null +++ b/comms/birda/patches/patch-src_mkobexcard.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_mkobexcard.c,v 1.1 2013/10/10 00:02:17 joerg Exp $ + +--- src/mkobexcard.c.orig 2013-10-09 23:07:15.000000000 +0000 ++++ src/mkobexcard.c +@@ -142,7 +142,7 @@ int main(int argc, char** argv) + addStr(company); + addChar('\n'); + if (name[0] == '\0') +- snprintf(name, MAXNAME+1, company); ++ snprintf(name, MAXNAME+1, "%s", company); + } + if (title) { + addStr("TITLE:"); diff --git a/comms/birda/patches/patch-src_options.c b/comms/birda/patches/patch-src_options.c new file mode 100644 index 00000000000..c92ad204fe6 --- /dev/null +++ b/comms/birda/patches/patch-src_options.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_options.c,v 1.1 2013/10/10 00:02:17 joerg Exp $ + +--- src/options.c.orig 2013-10-09 23:05:27.000000000 +0000 ++++ src/options.c +@@ -223,7 +223,7 @@ static void showDiscovered(int addr, int + + if(charset==CHARSET_UNICODE) { + /* Strip the high byte */ +- for(i=0;2*i<len;i+=2) namebuf[i++]=name[2*i]; ++ for(i=0;2*i<len;++i) namebuf[i]=name[2*i]; + namebuf[i]=0; + } else { + memcpy(namebuf,name,len); diff --git a/comms/birda/patches/patch-src_sendobex.c b/comms/birda/patches/patch-src_sendobex.c index 7ad4b601df5..27c96b669f8 100644 --- a/comms/birda/patches/patch-src_sendobex.c +++ b/comms/birda/patches/patch-src_sendobex.c @@ -1,7 +1,16 @@ -$NetBSD: patch-src_sendobex.c,v 1.1 2012/02/16 16:40:34 hans Exp $ +$NetBSD: patch-src_sendobex.c,v 1.2 2013/10/10 00:02:17 joerg Exp $ ---- src/sendobex.c.orig 2005-11-14 08:57:16.000000000 +0100 -+++ src/sendobex.c 2012-01-25 16:30:35.349985033 +0100 +--- src/sendobex.c.orig 2005-11-14 07:57:16.000000000 +0000 ++++ src/sendobex.c +@@ -302,7 +302,7 @@ static int in_bind_ne(short port, int ty + if (sd < 0) + switch (sd) { + case SYSCALL_ERROR: +- fprintf(stderr, "in_bind_ne: bind", "port = %d, type = %s\n", ++ fprintf(stderr, "in_bind_ne: bind port = %d, type = %s\n", + port, socket_type_name(type)); + /* NOTREACHED */ + case RESOLVER_ERROR: @@ -327,7 +327,11 @@ void createOBEXSender(int port) //struct sockaddr addr; //socklen_t len; |