diff options
author | marcus <marcus@FreeBSD.org> | 2002-05-03 02:36:44 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-05-03 02:36:44 +0800 |
commit | 9e3c5a677982a70c04ac0bfcbcb327ebb16a5903 (patch) | |
tree | 032e6f6741bc08e3bf1cd453a71909c34010a781 /www/galeon | |
parent | af6bbb46a71d07e8536fc9214ff1d748563f4638 (diff) | |
download | freebsd-ports-gnome-9e3c5a677982a70c04ac0bfcbcb327ebb16a5903.tar.gz freebsd-ports-gnome-9e3c5a677982a70c04ac0bfcbcb327ebb16a5903.tar.zst freebsd-ports-gnome-9e3c5a677982a70c04ac0bfcbcb327ebb16a5903.zip |
Use strncmp() instead of strnstr() since the latter does not exist in
FreeBSD 4.x before 4.5.
Prompted by: Edward Glowacki <glowack2@msu.edu>
Diffstat (limited to 'www/galeon')
-rw-r--r-- | www/galeon/files/patch-src_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/www/galeon/files/patch-src_main.c b/www/galeon/files/patch-src_main.c index 584e80953a4e..61f7df20bcd6 100644 --- a/www/galeon/files/patch-src_main.c +++ b/www/galeon/files/patch-src_main.c @@ -5,11 +5,11 @@ { /* try to expand as files */ - if (realpath (args[i], buffer) != NULL) -+ if (!strnstr(args[i], "ghelp:", strlen("ghelp:")) && -+ !strnstr(args[i], "toc:", strlen("toc:")) && -+ !strnstr(args[i], "info:", strlen("info:")) && -+ !strnstr(args[i], "main:", strlen("man:")) && -+ !strnstr(args[i], "gnome-help:", strlen("gnome-help")) && ++ if (strncmp(args[i], "ghelp:", strlen("ghelp:")) && ++ strncmp(args[i], "toc:", strlen("toc:")) && ++ strncmp(args[i], "info:", strlen("info:")) && ++ strncmp(args[i], "main:", strlen("man:")) && ++ strncmp(args[i], "gnome-help:", strlen("gnome-help")) && + realpath (args[i], buffer) != NULL) { (*urls)[i] = g_strconcat ("file://", buffer, NULL); |