From 925645792ee366d60777039b387df35729d5fd7b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Dec 2012 21:25:29 +0000 Subject: [PATCH] grr meant strncpy! SVN revision: 80898 --- src/bin/e_fm_op.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c index 14af2d05f..ce6f0ebb6 100644 --- a/src/bin/e_fm_op.c +++ b/src/bin/e_fm_op.c @@ -1254,14 +1254,14 @@ _e_fm_op_copy_link(E_Fm_Op_Task *task) } if (symlink(lnk_path, task->dst.name) == -1) { - strncat(buf, lnk_path, sizeof(buf)); + strncpy(buf, lnk_path, sizeof(buf) - 1); free(lnk_path); _E_FM_OP_ERROR_SEND_WORK(task, E_FM_OP_ERROR, "Cannot create link from '%s' to '%s': %s.", buf, task->dst.name); } } else { - strncat(buf, lnk_path, sizeof(buf)); + strncpy(buf, lnk_path, sizeof(buf) - 1); free(lnk_path); _E_FM_OP_ERROR_SEND_WORK(task, E_FM_OP_ERROR, "Cannot create link from '%s' to '%s': %s.", buf, task->dst.name); }