mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
[project @ 2003-12-27 02:23:10 by jmb]
Fix a couple more warnings svn path=/import/netsurf/; revision=457
This commit is contained in:
parent
0a1756a84f
commit
02915bb583
@ -555,7 +555,7 @@ size_t fetch_curl_header(char * data, size_t size, size_t nmemb, struct fetch *f
|
||||
} else if (16 < size && strncasecmp(data, "WWW-Authenticate",16) == 0) {
|
||||
/* extract Realm from WWW-Authenticate header */
|
||||
f->realm = xcalloc(size, 1);
|
||||
for (i=16;i!=strlen(data);i++)
|
||||
for (i=16;(unsigned int)i!=strlen(data);i++)
|
||||
if(data[i]=='=')break;
|
||||
strncpy(f->realm, data+i+2, size-i-5);
|
||||
}
|
||||
|
@ -294,7 +294,7 @@ void html_redraw_box(struct content *content, struct box * box,
|
||||
((current_background_color >> 8) & 0xff)) / 2) << 8)
|
||||
| ((((colour & 0xff) +
|
||||
(current_background_color & 0xff)) / 2) << 0);
|
||||
colourtrans_set_gcol(colour << 8, colourtrans_USE_ECFS,
|
||||
colourtrans_set_gcol((unsigned int)colour << 8, colourtrans_USE_ECFS,
|
||||
os_ACTION_OVERWRITE, 0);
|
||||
|
||||
if (box->style->text_decoration & CSS_TEXT_DECORATION_UNDERLINE || (box->parent->parent->style->text_decoration & CSS_TEXT_DECORATION_UNDERLINE && box->parent->parent->type == BOX_BLOCK)) {
|
||||
|
Loading…
Reference in New Issue
Block a user