Module Name:    src
Committed By:   kre
Date:           Sat Oct 27 11:52:26 UTC 2018

Modified Files:
        src/usr.bin/gzip: unlz.c

Log Message:
Fix printf conversion of off_t for 32 bit hosts (fix i386 build)
(%td is for ptrdiff_t)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/gzip/unlz.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/gzip/unlz.c
diff -u src/usr.bin/gzip/unlz.c:1.1 src/usr.bin/gzip/unlz.c:1.2
--- src/usr.bin/gzip/unlz.c:1.1	Fri Oct 26 22:10:15 2018
+++ src/usr.bin/gzip/unlz.c	Sat Oct 27 11:52:26 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: unlz.c,v 1.1 2018/10/26 22:10:15 christos Exp $	*/
+/*	$NetBSD: unlz.c,v 1.2 2018/10/27 11:52:26 kre Exp $	*/
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -577,7 +577,7 @@ lz_decode(int fin, int fdout, unsigned d
 #else
 	rv = ftello(lz.fout);
 #endif
-	fprintf(stderr, "%td\n", rv);
+	fprintf(stderr, "%jd\n", (intmax_t)rv);
 out:
 	lz_destroy(&lz);
 	return rv;

Reply via email to