diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-09-10 10:30:27 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-09-10 10:31:06 +0100 |
commit | ec94d5f812723c586b26d4c1700b641e5cb2f7a0 (patch) | |
tree | 8d4d441246195897ce5a5e0d513c4a47828b317e /desktop/save_complete.c | |
parent | 02a8b5bca0cfe8307624dc7c2bf736069c0a2e0b (diff) | |
download | netsurf-ec94d5f812723c586b26d4c1700b641e5cb2f7a0.tar.gz netsurf-ec94d5f812723c586b26d4c1700b641e5cb2f7a0.tar.bz2 |
move history bitmap thumbnail into the page information structure
Diffstat (limited to 'desktop/save_complete.c')
-rw-r--r-- | desktop/save_complete.c | 15 |
1 files changed, 9 insertions, 6 deletions
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' && |