aboutsummaryrefslogtreecommitdiff
path: root/libexec/comsat
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-06-30 15:19:51 +0000
committerBruce Evans <bde@FreeBSD.org>1998-06-30 15:19:51 +0000
commit1a463b86e93c84bc9c86042310eb72e5b734b94f (patch)
tree8dc03fe75425551b4a859dad486541ec7bf4e838 /libexec/comsat
parent673796a715f771cf3d4cbd6f02831775aa48fb6c (diff)
Notes
Diffstat (limited to 'libexec/comsat')
-rw-r--r--libexec/comsat/comsat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c
index 0c49c1bce210..a199f58b6865 100644
--- a/libexec/comsat/comsat.c
+++ b/libexec/comsat/comsat.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)comsat.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: comsat.c,v 1.11 1997/11/20 07:23:44 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -186,9 +186,11 @@ mailfor(name)
file = name;
else
file = cp + 1;
- sprintf(buf, "%s/%.*s", _PATH_MAILDIR, sizeof(utmp[0].ut_name), name);
+ sprintf(buf, "%s/%.*s", _PATH_MAILDIR, (int)sizeof(utmp[0].ut_name),
+ name);
if (*file != '/') {
- sprintf(buf2, "%s/%.*s", _PATH_MAILDIR, sizeof(utmp[0].ut_name), file);
+ sprintf(buf2, "%s/%.*s", _PATH_MAILDIR,
+ (int)sizeof(utmp[0].ut_name), file);
file = buf2;
}
folder = strcmp(buf, file);