pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/comms/synce-libsynce



Module Name:    pkgsrc
Committed By:   tnn
Date:           Tue Aug 18 01:46:07 UTC 2020

Modified Files:
        pkgsrc/comms/synce-libsynce: distinfo
Added Files:
        pkgsrc/comms/synce-libsynce/patches: patch-lib_files.c

Log Message:
synce-libsynce: fix build


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/comms/synce-libsynce/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/synce-libsynce/patches/patch-lib_files.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/comms/synce-libsynce/distinfo
diff -u pkgsrc/comms/synce-libsynce/distinfo:1.2 pkgsrc/comms/synce-libsynce/distinfo:1.3
--- pkgsrc/comms/synce-libsynce/distinfo:1.2    Tue Nov  3 01:34:57 2015
+++ pkgsrc/comms/synce-libsynce/distinfo        Tue Aug 18 01:46:06 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 01:34:57 agc Exp $
+$NetBSD: distinfo,v 1.3 2020/08/18 01:46:06 tnn Exp $
 
 SHA1 (synce-libsynce-0.9.1.tar.gz) = 603930b41fa987fa7e5e709a40360a616eac231c
 RMD160 (synce-libsynce-0.9.1.tar.gz) = a8c9d68196dec1b7555f56e8aab622a2817e1cf3
@@ -6,3 +6,4 @@ SHA512 (synce-libsynce-0.9.1.tar.gz) = 5
 Size (synce-libsynce-0.9.1.tar.gz) = 356343 bytes
 SHA1 (patch-aa) = bec59abf5b271c4f9a92af85a7cd3e3c19833d61
 SHA1 (patch-ab) = 0f36a9f97706e26ae49569dda0d21a42cfdb63ec
+SHA1 (patch-lib_files.c) = 4bc7d83e1ea3f83a103c7d5543c9cf3130e87aef

Added files:

Index: pkgsrc/comms/synce-libsynce/patches/patch-lib_files.c
diff -u /dev/null pkgsrc/comms/synce-libsynce/patches/patch-lib_files.c:1.1
--- /dev/null   Tue Aug 18 01:46:07 2020
+++ pkgsrc/comms/synce-libsynce/patches/patch-lib_files.c       Tue Aug 18 01:46:07 2020
@@ -0,0 +1,20 @@
+$NetBSD: patch-lib_files.c,v 1.1 2020/08/18 01:46:07 tnn Exp $
+
+files.c:128:35: error: '__builtin_snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
+  snprintf(buffer, sizeof(buffer), "%s/%s" , path, connection_filename);
+                                   ^~~~~~~
+files.c:128:2: note: '__builtin_snprintf' output 2 or more bytes (assuming 257) into a destination of size 256
+  snprintf(buffer, sizeof(buffer), "%s/%s" , path, connection_filename);
+
+--- lib/files.c.orig   2005-05-16 21:42:34.000000000 +0000
++++ lib/files.c
+@@ -125,7 +125,8 @@ bool synce_get_connection_filename(char*
+       if (!synce_get_directory(&path))
+               goto exit;
+ 
+-      snprintf(buffer, sizeof(buffer), "%s/%s" , path, connection_filename);
++      if (snprintf(buffer, sizeof(buffer), "%s/%s" , path, connection_filename) > (int)sizeof(buffer) - 1)
++              goto exit;
+       *filename = strdup(buffer);
+ 
+       success = true;



Home | Main Index | Thread Index | Old Index