X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/264d458403709d8ad348c4c6fd8650d7a75ac949..4eaed47f91c9de0b520ea41188be3fedae4b99ca:/sbr/m_scratch.c diff --git a/sbr/m_scratch.c b/sbr/m_scratch.c index 70a2c920..df635316 100644 --- a/sbr/m_scratch.c +++ b/sbr/m_scratch.c @@ -3,6 +3,10 @@ * m_scratch.c -- construct a scratch file * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -29,7 +33,7 @@ m_scratch (char *file, char *template) if ((cp = r1bindex (file, '/')) == file) strncpy (buffer, tmpfil, sizeof(buffer)); else - snprintf (buffer, sizeof(buffer), "%.*s%s", cp - file, file, tmpfil); + snprintf (buffer, sizeof(buffer), "%.*s%s", (int)(cp - file), file, tmpfil); unlink (buffer); return buffer;