Fix warnings.

* e-html-utils.c: Fix warnings.

svn path=/trunk/; revision=4048
This commit is contained in:
Dan Winship
2000-07-10 20:35:43 +00:00
parent b3bdc8f5ea
commit dd38706a92
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2000-07-10 Dan Winship <danw@helixcode.com>
* e-html-utils.c: Fix warnings.
2000-07-08 Christopher James Lahey <clahey@helixcode.com>
* e-list.c, e-list.h: Added e_list_duplicate.

View File

@ -62,9 +62,9 @@ check_size (char **buffer, int *buffer_size, char *out, int len)
}
static char *
url_extract (const char **text, gboolean check)
url_extract (const unsigned char **text, gboolean check)
{
const char *end = *text, *p;
const unsigned char *end = *text, *p;
char *out;
while (*end && !isspace (*end) && *end != '"')
@ -215,7 +215,8 @@ e_text_to_html (const char *input, unsigned int flags)
case ' ':
if (flags & E_TEXT_TO_HTML_CONVERT_SPACES) {
if (cur == input || *(cur + 1) == ' ') {
if (cur == (const unsigned char *)input ||
*(cur + 1) == ' ') {
strcpy (out, "&nbsp;");
out += 6;
break;