[Pkg-owncloud-commits] [owncloud-client] 284/498: vio_local: strncat only needs two chars as limit.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit a076a170ee9cd2aa431387058709ca45319cf144
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Jul 8 11:16:07 2015 +0200

    vio_local: strncat only needs two chars as limit.
---
 csync/src/vio/csync_vio_local.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csync/src/vio/csync_vio_local.c b/csync/src/vio/csync_vio_local.c
index ee3c405..efbe6dc 100644
--- a/csync/src/vio/csync_vio_local.c
+++ b/csync/src/vio/csync_vio_local.c
@@ -69,7 +69,7 @@ csync_vio_handle_t *csync_vio_local_opendir(const char *name) {
       // alloc an enough large buffer to take the name + '/*' + the closing zero.
       h = c_malloc(len_name+3);
       strncpy( h, name, 1+len_name);
-      strncat(h, "/*",3);
+      strncat(h, "/*", 2);
 
       dirname = c_utf8_path_to_locale(h);
       SAFE_FREE(h);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list