[Pkg-owncloud-commits] [owncloud-client] 279/498: Use strncat and strncpy rather than the strcpy and friends.

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 8bb1a49aaf81074bcb126e6739e53bfc3d919b23
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Fri Jul 3 16:38:15 2015 +0200

    Use strncat and strncpy rather than the strcpy and friends.
---
 csync/src/vio/csync_vio_local.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/csync/src/vio/csync_vio_local.c b/csync/src/vio/csync_vio_local.c
index 2465774..3c5d4f3 100644
--- a/csync/src/vio/csync_vio_local.c
+++ b/csync/src/vio/csync_vio_local.c
@@ -68,8 +68,8 @@ 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);
-      strcpy( h, name);
-      strcat(h, "/*");
+      strncpy( h, name, len_name);
+      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