1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/textproc/par/files/patch-reformat.c
Mark Murray f28a05d93d Fix to add staging support.
While I'm here, fix compilation; subtracting 2 pointers on a 64-bit
machine gives something the same size as a size_t.
Refactor the patches by using 'make makepatch'.

PR:             186604
Submitted by:   Mikhail - mp39590 gmail com
2014-02-10 21:31:14 +00:00

12 lines
467 B
C

--- ./reformat.c.orig 2014-02-10 21:14:43.000000000 +0000
+++ ./reformat.c 2014-02-10 21:17:35.000000000 +0000
@@ -335,7 +335,7 @@
for (end = *line; *end; ++end);
if (end - *line < affix) {
sprintf(errmsg,
- "Line %d shorter than <prefix> + <suffix> = %d + %d = %d\n",
+ "Line %zd shorter than <prefix> + <suffix> = %d + %d = %d\n",
line - inlines + 1, prefix, suffix, affix);
goto rfcleanup;
}