svn commit: r229226 - stable/9/usr.sbin/lpr/lpd
Dimitry Andric
dim at FreeBSD.org
Sun Jan 1 23:04:28 UTC 2012
Author: dim
Date: Sun Jan 1 23:04:27 2012
New Revision: 229226
URL: http://svn.freebsd.org/changeset/base/229226
Log:
MFC r228664:
In usr.sbin/lpr/lpd/printjob.c, use the correct printf length modifiers
for off_t (aka int64_t).
Modified:
stable/9/usr.sbin/lpr/lpd/printjob.c
Directory Properties:
stable/9/usr.sbin/lpr/lpd/ (props changed)
Modified: stable/9/usr.sbin/lpr/lpd/printjob.c
==============================================================================
--- stable/9/usr.sbin/lpr/lpd/printjob.c Sun Jan 1 22:34:37 2012 (r229225)
+++ stable/9/usr.sbin/lpr/lpd/printjob.c Sun Jan 1 23:04:27 2012 (r229226)
@@ -62,6 +62,7 @@ __FBSDID("$FreeBSD$");
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
+#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -1138,9 +1139,10 @@ sendagain:
copycnt++;
if (copycnt < 2)
- (void) sprintf(buf, "%c%qd %s\n", type, stb.st_size, file);
+ (void) sprintf(buf, "%c%" PRId64 " %s\n", type, stb.st_size,
+ file);
else
- (void) sprintf(buf, "%c%qd %s_c%d\n", type, stb.st_size,
+ (void) sprintf(buf, "%c%" PRId64 " %s_c%d\n", type, stb.st_size,
file, copycnt);
amt = strlen(buf);
for (i = 0; ; i++) {
More information about the svn-src-stable-9
mailing list