summaryrefslogtreecommitdiffstats
path: root/www/galeon2/files
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-05-02 18:36:44 +0000
committermarcus <marcus@FreeBSD.org>2002-05-02 18:36:44 +0000
commit9e3c5a677982a70c04ac0bfcbcb327ebb16a5903 (patch)
tree032e6f6741bc08e3bf1cd453a71909c34010a781 /www/galeon2/files
parentaf6bbb46a71d07e8536fc9214ff1d748563f4638 (diff)
downloadFreeBSD-ports-9e3c5a677982a70c04ac0bfcbcb327ebb16a5903.zip
FreeBSD-ports-9e3c5a677982a70c04ac0bfcbcb327ebb16a5903.tar.gz
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/galeon2/files')
-rw-r--r--www/galeon2/files/patch-src_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/www/galeon2/files/patch-src_main.c b/www/galeon2/files/patch-src_main.c
index 584e809..61f7df2 100644
--- a/www/galeon2/files/patch-src_main.c
+++ b/www/galeon2/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);
OpenPOWER on IntegriCloud