commit f10d938dc6e9c9cc33164489aab32e6c139f78ef
parent cce01b90f4741231f7ff9eb5a29240314fc7f63b
Author: Kyle Milz <milz@macbook.0x30.net>
Date:   Tue, 18 Aug 2020 11:51:54 -0700
Use proper size for printf format specifier
%jd is the best format specifier I can come up with for off_t arguments.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dvi-draw.c b/dvi-draw.c
@@ -322,7 +322,7 @@ tell_oops(va_alist)
 	if (currinf.virtual)
 	    Fprintf(stderr, " in virtual font %s\n", currinf.virtual->fontname);
 	else
-	    Fprintf(stderr, ", offset %ld\n", xtell(currinf.pos - 1));
+	    Fprintf(stderr, ", offset %jd\n", xtell(currinf.pos - 1));
 	xdvi_exit(1);
 }
 
@@ -2994,12 +2994,12 @@ source_forward_search(str)
 		return;
 	    }
 	    if (debug & DBG_CLIENT)
-		printf("Found close match:  line %d on page %d, offset %lu\n",
+		printf("Found close match:  line %d on page %d, offset %jd\n",
 		  best_line, best_page + pageno_correct, best_offset);
 	}
 	else {
 	    if (debug & DBG_CLIENT)
-		printf("Found exact match on page %d, offset %lu\n",
+		printf("Found exact match on page %d, offset %jd\n",
 		  best_page + pageno_correct, best_offset);
 	}