summaryrefslogtreecommitdiff
path: root/www/galeon/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-05-02 18:36:44 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-05-02 18:36:44 +0000
commitb983020a103ad9c78e7f4193edf5117c356084ba (patch)
tree78dad38043ea56d499c1c062b4399aceb2e4d27f /www/galeon/files
parentForgot a directory in last night's commit. Update bonobo-activation to 0.9.8. (diff)
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>
Notes
Notes: svn path=/head/; revision=58465
Diffstat (limited to 'www/galeon/files')
-rw-r--r--www/galeon/files/patch-src_main.c10
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);