From ec94d5f812723c586b26d4c1700b641e5cb2f7a0 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 10 Sep 2017 10:30:27 +0100 Subject: move history bitmap thumbnail into the page information structure --- desktop/save_complete.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'desktop/save_complete.c') diff --git a/desktop/save_complete.c b/desktop/save_complete.c index cd1ac53b4..9a88ad180 100644 --- a/desktop/save_complete.c +++ b/desktop/save_complete.c @@ -195,10 +195,12 @@ static bool save_complete_save_buffer(save_complete_ctx *ctx, * \param osize updated with the size of the result. * \return converted source, or NULL on out of memory. */ - -static char *save_complete_rewrite_stylesheet_urls(save_complete_ctx *ctx, - const char *source, unsigned long size, const nsurl *base, - unsigned long *osize) +static char * +save_complete_rewrite_stylesheet_urls(save_complete_ctx *ctx, + const char *source, + unsigned long size, + const nsurl *base, + unsigned long *osize) { char *rewritten; unsigned long offset = 0; @@ -207,8 +209,9 @@ static char *save_complete_rewrite_stylesheet_urls(save_complete_ctx *ctx, /* count number occurrences of @import to (over)estimate result size */ /* can't use strstr because source is not 0-terminated string */ - for (offset = 0; SLEN("@import") < size && - offset <= size - SLEN("@import"); offset++) { + for (offset = 0; + (SLEN("@import") < size) && (offset <= (size - SLEN("@import"))); + offset++) { if (source[offset] == '@' && ascii_to_lower(source[offset + 1]) == 'i' && ascii_to_lower(source[offset + 2]) == 'm' && -- cgit v1.2.3