projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Fixes ported from trunk:
[mmh]
/
sbr
/
m_scratch.c
diff --git
a/sbr/m_scratch.c
b/sbr/m_scratch.c
index
d712576
..
df63531
100644
(file)
--- a/
sbr/m_scratch.c
+++ b/
sbr/m_scratch.c
@@
-3,6
+3,10
@@
* m_scratch.c -- construct a scratch file
*
* $Id$
* 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>
*/
#include <h/mh.h>
@@
-25,11
+29,11
@@
m_scratch (char *file, char *template)
/*
#endif
*/
/*
#endif
*/
-/* nasty - this really means: if there is no '/' in the path */
+ /* nasty - this really means: if there is no '/' in the path */
if ((cp = r1bindex (file, '/')) == file)
strncpy (buffer, tmpfil, sizeof(buffer));
else
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;
unlink (buffer);
return buffer;