aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-04-16 14:11:16 +0000
committercorvid <corvid@lavabit.com>2011-04-16 14:11:16 +0000
commite0608056c4ec4431c7164ef0af9e1c7638e6ca2b (patch)
tree14989603b45cdca0f62206ce7c5e14144cbe39cc /src
parent03fcca9bbb9641821e3f4d071dcf1105777182ba (diff)
parent448a73a74c2772e4152dab497f4ac09b6373ad76 (diff)
merge in recent changes from main repo
Diffstat (limited to 'src')
-rw-r--r--src/gif.c2
-rw-r--r--src/html.cc7
-rw-r--r--src/jpeg.c2
-rw-r--r--src/png.c2
4 files changed, 5 insertions, 8 deletions
diff --git a/src/gif.c b/src/gif.c
index 50c68960..b5486c46 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -804,7 +804,7 @@ static size_t Gif_do_img_desc(DilloGif *gif, void *Buf,
/* check max image size */
if (gif->Width <= 0 || gif->Height <= 0 ||
gif->Width > IMAGE_MAX_AREA / gif->Height) {
- MSG("Gif_do_img_desc: suspicious image size request %ux%u\n",
+ MSG("Gif_do_img_desc: suspicious image size request %u x %u\n",
gif->Width, gif->Height);
gif->state = 999;
return 0;
diff --git a/src/html.cc b/src/html.cc
index 2ba4329a..ede391a3 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -2044,7 +2044,7 @@ DilloImage *a_Html_image_new(DilloHtml *html, const char *tag,
dFree(width_ptr);
dFree(height_ptr);
width_ptr = height_ptr = NULL;
- MSG("a_Html_image_new: suspicious image size request %dx%d\n", w, h);
+ MSG("a_Html_image_new: suspicious image size request %d x %d\n", w, h);
} else {
if (CSS_LENGTH_TYPE(l_w) != CSS_LENGTH_TYPE_AUTO)
html->styleEngine->setNonCssHint (CSS_PROPERTY_WIDTH,
@@ -3720,11 +3720,8 @@ static void Html_callback(int Op, CacheClient_t *Client)
static int Html_write_raw(DilloHtml *html, char *buf, int bufsize, int Eof)
{
char ch = 0, *p, *text;
- Textblock *textblock;
int token_start, buf_index;
- dReturn_val_if_fail ((textblock = HT2TB(html)) != NULL, 0);
-
/* Now, 'buf' and 'bufsize' define a buffer aligned to start at a token
* boundary. Iterate through tokens until end of buffer is reached. */
buf_index = 0;
@@ -3843,7 +3840,7 @@ static int Html_write_raw(DilloHtml *html, char *buf, int bufsize, int Eof)
}
}/*while*/
- textblock->flush ();
+ HT2TB(html)->flush ();
return token_start;
}
diff --git a/src/jpeg.c b/src/jpeg.c
index a6af3a2b..93d9df07 100644
--- a/src/jpeg.c
+++ b/src/jpeg.c
@@ -291,7 +291,7 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize)
if (jpeg->cinfo.image_width <= 0 || jpeg->cinfo.image_height <= 0 ||
jpeg->cinfo.image_width >
IMAGE_MAX_AREA / jpeg->cinfo.image_height) {
- MSG("Jpeg_write: suspicious image size request %ux%u\n",
+ MSG("Jpeg_write: suspicious image size request %u x %u\n",
(uint_t)jpeg->cinfo.image_width,
(uint_t)jpeg->cinfo.image_height);
jpeg->state = DILLO_JPEG_ERROR;
diff --git a/src/png.c b/src/png.c
index b82046b9..bf9de2ef 100644
--- a/src/png.c
+++ b/src/png.c
@@ -137,7 +137,7 @@ Png_datainfo_callback(png_structp png_ptr, png_infop info_ptr)
/* check max image size */
if (png->width == 0 || png->height == 0 ||
png->width > IMAGE_MAX_AREA / png->height) {
- MSG("Png_datainfo_callback: suspicious image size request %lux%lu\n",
+ MSG("Png_datainfo_callback: suspicious image size request %lu x %lu\n",
(ulong_t) png->width, (ulong_t) png->height);
Png_error_handling(png_ptr, "Aborting...");
return; /* not reached */