%%% Created Sat Jan 10 18:48:18 MST 2004 by target lynx.patch. %%% diff -bru orig/lynx2-8-5/src/LYForms.c lynx2-8-5/src/LYForms.c --- orig/lynx2-8-5/src/LYForms.c Sun Apr 27 18:38:00 2003 +++ lynx2-8-5/src/LYForms.c Sat Jan 10 18:39:18 2004 @@ -599,13 +599,13 @@ #ifdef CAN_CUT_AND_PASTE /* 1998/10/01 (Thu) 19:19:22 */ if (action == LYE_PASTE) { - unsigned char *s = get_clip_grab(), *e; + unsigned char *s = (unsigned char *) get_clip_grab(), *e; char *buf = NULL; int len; if (!s) break; - len = strlen(s); + len = strlen((const char *) s); e = s + len; if (len > 0) { @@ -617,7 +617,7 @@ LYEditInsert(&MyEdit, s, e1 - s, -1, TRUE); s = e1; if (*e1 == '\t') { /* Replace by space */ - LYEditInsert(&MyEdit, " ", 1, -1, TRUE); + LYEditInsert(&MyEdit, (unsigned char *) " ", 1, -1, TRUE); s = ++e1; } else break; @@ -629,7 +629,7 @@ while (e1 < e && *e1 == '\r') e1++; if (e1 + 1 < e && *e1 == '\n') - StrAllocCopy(buf, e1 + 1); /* Survive _release() */ + StrAllocCopy(buf, (char *) e1 + 1); /* Survive _release() */ get_clip_release(); if (MyEdit.strlen >= max_length) { HaveMaxlength = TRUE; diff -bru orig/lynx2-8-5/src/LYMainLoop.c lynx2-8-5/src/LYMainLoop.c --- orig/lynx2-8-5/src/LYMainLoop.c Wed Jan 7 19:03:09 2004 +++ lynx2-8-5/src/LYMainLoop.c Sat Jan 10 18:25:28 2004 @@ -6925,13 +6925,13 @@ if (no_goto && !LYValidate) { /* Go to not allowed. - FM */ HTUserMsg(GOTO_DISALLOWED); } else { - unsigned char *s = get_clip_grab(), *e, *t; + unsigned char *s = (unsigned char *) get_clip_grab(), *e, *t; char *buf; int len2; if (!s) break; - len2 = strlen(s); + len2 = strlen((const char *) s); e = s + len2; while (s < e && strchr(" \t\n\r", *s)) s++; @@ -6939,7 +6939,7 @@ e--; if (s[0] == '<' && e > s && e[-1] == '>') { s++; e--; - if (!strncasecomp(s,"URL:", 4)) + if (!strncasecomp((const char *) s,"URL:", 4)) s += 4; } if (s >= e) { @@ -6950,9 +6950,9 @@ if (len < MAX_LINE) len = MAX_LINE; /* Required for do_check_goto_URL() */ buf = (char*)malloc(len); - strncpy(buf, s, e - s); + strncpy(buf, (const char *) s, e - s); buf[e - s] = '\0'; - t = buf; + t = (unsigned char *) buf; while (s < e) { if (strchr(" \t\n\r", *s)) { diff -bru orig/lynx2-8-5/src/LYStrings.c lynx2-8-5/src/LYStrings.c --- orig/lynx2-8-5/src/LYStrings.c Wed Jan 7 19:03:09 2004 +++ lynx2-8-5/src/LYStrings.c Sat Jan 10 18:07:33 2004 @@ -4851,12 +4851,12 @@ case LYE_PASTE: { - unsigned char *s = get_clip_grab(), *e; + unsigned char *s = (unsigned char *) get_clip_grab(), *e; int len; if (!s) break; - len = strlen(s); + len = strlen((const char *) s); e = s + len; if (len > 0) { @@ -4868,7 +4868,7 @@ LYEditInsert(&MyEdit, s, e1 - s, map_active, TRUE); s = e1; if (*e1 == '\t') { /* Replace by space */ - LYEditInsert(&MyEdit, " ", 1, map_active, TRUE); + LYEditInsert(&MyEdit, (unsigned char * ) " ", 1, map_active, TRUE); s = ++e1; } else break;