From ebd5398d896c795735c0b721edc8e714d91d1c3e Mon Sep 17 00:00:00 2001 From: Tim Cava Date: Sat, 17 Aug 2013 06:22:58 +0000 Subject: [PATCH] Use strlcpy, rather than strmcpy, in create_timer_ref(). git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@350 13b04d17-f746-0410-82c6-800466cd88b0 --- source/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/timer.c b/source/timer.c index 2b0917e..f299d03 100644 --- a/source/timer.c +++ b/source/timer.c @@ -321,7 +321,7 @@ static int create_timer_ref (char *refnum_want, char *refnum_gets) if (refnum < ref) refnum = ref; } - strmcpy(refnum_gets, ltoa(refnum+1), REFNUM_MAX); + strlcpy(refnum_gets, ltoa(refnum+1), REFNUM_MAX); } else { @@ -331,7 +331,7 @@ static int create_timer_ref (char *refnum_want, char *refnum_gets) if (!my_stricmp(tmp->ref, refnum_want)) return -1; } - strmcpy(refnum_gets, refnum_want, REFNUM_MAX); + strlcpy(refnum_gets, refnum_want, REFNUM_MAX); } return 0;