- /*
- * Check for and copy URLs
- * We will get the entire URL even if it's longer than the
- * screen width, as long as the server didn't break it up
- */
- if (!strncasecmp(e, "http://", 7) ||
- !strncasecmp(e, "ftp://", 6)) {
- int j;
-
- strncpy(urls[num_urls], e, i);
- urls[num_urls][i] = 0;
- for (j = 0; j < strlen(e); j++) {
- char c;
-
- c = urls[num_urls][j];
- if (c == '>' || c == '\"' || c == ')' ||
- c == ' ' || c == '\n') {
- urls[num_urls][j] = 0;
- break;
- }
- }
- num_urls++;
- }
-