cvsdist fbd586b
diff -u urlview-0.9.old/enter.c urlview-0.9/enter.c
cvsdist fbd586b
--- urlview-0.9.old/enter.c	Tue Jul  4 12:14:30 2000
cvsdist fbd586b
+++ urlview-0.9/enter.c	Tue Jul  4 14:48:40 2000
cvsdist fbd586b
@@ -141,7 +141,9 @@
cvsdist fbd586b
   int pass = (flags == M_PASS);
cvsdist fbd586b
   int first = 1;
cvsdist fbd586b
   int j;
cvsdist fbd586b
+#ifndef URLVIEW
cvsdist fbd586b
   char tempbuf[_POSIX_PATH_MAX] = "";
cvsdist fbd586b
+#endif
cvsdist fbd586b
 
cvsdist fbd586b
   FOREVER
cvsdist fbd586b
   {
cvsdist fbd586b
diff -u urlview-0.9.old/urlview.c urlview-0.9/urlview.c
cvsdist fbd586b
--- urlview-0.9.old/urlview.c	Tue Jul  4 12:14:30 2000
cvsdist fbd586b
+++ urlview-0.9/urlview.c	Tue Jul  4 14:45:50 2000
cvsdist fbd586b
@@ -46,6 +46,8 @@
cvsdist fbd586b
 #include <rx/rxposix.h>
cvsdist fbd586b
 #endif
cvsdist fbd586b
 
cvsdist fbd586b
+#define ISSPACE(c) isspace((unsigned char)c)
cvsdist fbd586b
+
cvsdist fbd586b
 #define DEFAULT_REGEXP "(((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>\"]+|(www|web|w3)\\.[-a-z0-9.]+)[^' \t.,;<>\"\\):]"
cvsdist fbd586b
 #define DEFAULT_COMMAND "url_handler.sh %s"
cvsdist fbd586b
 #define SYSTEM_INITFILE "/etc/urlview.conf"
cvsdist fbd586b
@@ -64,6 +66,8 @@
cvsdist fbd586b
 extern int mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x,
cvsdist fbd586b
 		int flags);
cvsdist fbd586b
 
cvsdist fbd586b
+extern char *quote (char *d, size_t l, const char *f);
cvsdist fbd586b
+
cvsdist fbd586b
 void search_forward (char *search, int urlcount, char **url, int *redraw, int *current, int *top)
cvsdist fbd586b
 {
cvsdist fbd586b
   regex_t rx;
cvsdist fbd586b
@@ -198,10 +202,10 @@
cvsdist fbd586b
     {
cvsdist fbd586b
       if (buf[0] == '#' || buf[0] == '\n')
cvsdist fbd586b
 	continue;
cvsdist fbd586b
-      if (strncmp ("REGEXP", buf, 6) == 0 && isspace (buf[6]))
cvsdist fbd586b
+      if (strncmp ("REGEXP", buf, 6) == 0 && ISSPACE (buf[6]))
cvsdist fbd586b
       {
cvsdist fbd586b
 	pc = buf + 6;
cvsdist fbd586b
-	while (isspace (*pc))
cvsdist fbd586b
+	while (ISSPACE (*pc))
cvsdist fbd586b
 	  pc++;
cvsdist fbd586b
 	wc = regexp;
cvsdist fbd586b
 	while (*pc && *pc != '\n')
cvsdist fbd586b
@@ -235,10 +239,10 @@
cvsdist fbd586b
 	}
cvsdist fbd586b
 	*wc = 0;
cvsdist fbd586b
       }
cvsdist fbd586b
-      else if (strncmp ("COMMAND", buf, 7) == 0 && isspace (buf[7]))
cvsdist fbd586b
+      else if (strncmp ("COMMAND", buf, 7) == 0 && ISSPACE (buf[7]))
cvsdist fbd586b
       {
cvsdist fbd586b
 	pc = buf + 7;
cvsdist fbd586b
-	while (isspace (*pc))
cvsdist fbd586b
+	while (ISSPACE (*pc))
cvsdist fbd586b
 	  pc++;
cvsdist fbd586b
 	pc[ strlen (pc) - 1 ] = 0; /* kill the trailing newline */
cvsdist fbd586b
 	strncpy (command, pc, sizeof (command) - 1);