aboutsummaryrefslogtreecommitdiff
path: root/src/lib/wct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/wct.c')
-rw-r--r--src/lib/wct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/wct.c b/src/lib/wct.c
index 35cc01e9..44510558 100644
--- a/src/lib/wct.c
+++ b/src/lib/wct.c
@@ -572,7 +572,7 @@ rescan_wct(void)
else if (new_len < old_len) {
/* this time I simply copy backwards and do the substituting */
diff = old_len - new_len;
- strncpy(&buff[curr_pntr - diff],
+ strnmov(&buff[curr_pntr - diff],
&buff[curr_pntr],
buff_pntr - curr_pntr);
flagncpy(&buff_flag[curr_pntr - diff],