less horrible strncpy's
[apps/madmutt.git] / dotlock.c
index 43d3058..9df9848 100644 (file)
--- a/dotlock.c
+++ b/dotlock.c
@@ -55,7 +55,7 @@
 # define LONG_STRING 1024
 # define MAXLOCKATTEMPT 5
 
-# define strfcpy(A,B,C) strncpy (A,B,C), *(A+(C)-1)=0
+# define strfcpy(A,B,C)  m_strcpy(A,C,B)
 
 # ifdef USE_SETGID