X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/0a032eea07f6d77ac6ea4d5a39c9491c34358058..b46d49ba:/sbr/makedir.c?ds=inline diff --git a/sbr/makedir.c b/sbr/makedir.c index e2ec35cd..9d5e12e5 100644 --- a/sbr/makedir.c +++ b/sbr/makedir.c @@ -1,5 +1,4 @@ -/* - * makedir.c -- make a directory +/* makedir.c -- make a directory * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -11,6 +10,7 @@ */ #include +#include "makedir.h" #include int @@ -44,7 +44,7 @@ makedir (const char *dir) c = strncpy(path, dir, sizeof(path)); while (!had_an_error && (c = strchr((c + 1), '/')) != NULL) { - *c = (char)0; + *c = '\0'; if (access(path, X_OK)) { if (errno != ENOENT){ advise (dir, "unable to create directory");