2011-04-16 17:13:43 -04:00
|
|
|
$OpenBSD: patch-crawl_c,v 1.6 2011/04/16 21:13:44 sthen Exp $
|
2004-04-07 18:51:03 -04:00
|
|
|
--- crawl.c.orig Sun May 18 03:26:41 2003
|
2010-05-23 12:25:21 -04:00
|
|
|
+++ crawl.c Sat May 22 16:42:06 2010
|
|
|
|
@@ -167,8 +167,8 @@ image_saver(struct uri *uri)
|
2002-07-16 12:08:23 -04:00
|
|
|
return (-1);
|
|
|
|
|
|
|
|
if (uri->length != -1 && uri->bdlen != uri->length) {
|
|
|
|
- snprintf(tmp, sizeof(tmp), " (%4.1f%%/%d)",
|
|
|
|
- (float)uri->bdlen/uri->length*100, uri->length);
|
|
|
|
+ snprintf(tmp, sizeof(tmp), " (%4.1f%%/%ld)",
|
|
|
|
+ (float)uri->bdlen/uri->length*100, (long)uri->length);
|
|
|
|
p = tmp;
|
|
|
|
}
|
|
|
|
fprintf(stdout, "%s %s%s\n",
|