]> git.marmaro.de Git - mmh/blobdiff - sbr/m_scratch.c
don't use $< in target rules in makefiles, as POSIX says it's only defined
[mmh] / sbr / m_scratch.c
index 70a2c920285aa4dcf2aca268e05833e6f3f98694..df635316ec95d7ac3374d55aac574560e16df292 100644 (file)
@@ -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 <h/mh.h>
@@ -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;