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
This commit is contained in:
Tim Cava
2013-08-17 06:22:58 +00:00
parent cc8f50b187
commit ebd5398d89

View File

@@ -321,7 +321,7 @@ static int create_timer_ref (char *refnum_want, char *refnum_gets)
if (refnum < ref) if (refnum < ref)
refnum = ref; refnum = ref;
} }
strmcpy(refnum_gets, ltoa(refnum+1), REFNUM_MAX); strlcpy(refnum_gets, ltoa(refnum+1), REFNUM_MAX);
} }
else else
{ {
@@ -331,7 +331,7 @@ static int create_timer_ref (char *refnum_want, char *refnum_gets)
if (!my_stricmp(tmp->ref, refnum_want)) if (!my_stricmp(tmp->ref, refnum_want))
return -1; return -1;
} }
strmcpy(refnum_gets, refnum_want, REFNUM_MAX); strlcpy(refnum_gets, refnum_want, REFNUM_MAX);
} }
return 0; return 0;