X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=dotlock.c;h=e08a4674bd74c9b5fa7bbac3a2dd3f0053613379;hp=eb761ad32f6f552a5e6ec064064e05852003bacb;hb=c97c29afb910fc6b5fadbe15452dad185570be9b;hpb=841934011451205d8295ac955486f06c317fdf15 diff --git a/dotlock.c b/dotlock.c index eb761ad..e08a467 100644 --- a/dotlock.c +++ b/dotlock.c @@ -126,7 +126,7 @@ static int dotlock_lock (const char *); #define check_flags(a) if (a & DL_FL_ACTIONS) usage (argv[0]) -size_t mutt_strlen (const char* s) { +size_t str_len (const char* s) { return (s ? strlen (s) : 0); } @@ -453,7 +453,7 @@ static int dotlock_prepare (char *bn, size_t l, const char *f, int _fd) dirname = "."; } - if (mutt_strlen (basename) + 1 > l) + if (str_len (basename) + 1 > l) return -1; strfcpy (bn, basename, l);