summaryrefslogtreecommitdiffstats
path: root/libexec/comsat
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-30 15:19:51 +0000
committerbde <bde@FreeBSD.org>1998-06-30 15:19:51 +0000
commita468add075ec3bd1ebf5416bc3196659298357d4 (patch)
treea11b68a1ac53c885dea6ffafb316d41b231e09ad /libexec/comsat
parenteede544ec32c423c220118da70f7f62a2b779670 (diff)
downloadFreeBSD-src-a468add075ec3bd1ebf5416bc3196659298357d4.zip
FreeBSD-src-a468add075ec3bd1ebf5416bc3196659298357d4.tar.gz
Fixed printf format errors.
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 0c49c1b..a199f58 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);
OpenPOWER on IntegriCloud