Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] Set-up on Mac OS X...
Cool...
One question...
Do I paste this into a shell script and just run it?
I have never run one of these patches before.
Thanks,
Dan
diff -Nru hylafax.orig/hfaxd/InetFaxServer.c++
hylafax/hfaxd/InetFaxServer.c++
--- hylafax.orig/hfaxd/InetFaxServer.c++ Mon Oct 21 21:00:21 2002
+++ hylafax/hfaxd/InetFaxServer.c++ Wed Feb 5 15:51:19 2003
@@ -126,18 +126,19 @@
static const char*
topDomain(const fxStr& h)
{
- char* maybe = NULL;
int dots = 0;
u_int l = h.length();
+
+ if(l <= 0) return(NULL); // out early
+
for (;;) {
l = h.nextR(l, '.');
if (l == 0)
- break;
+ return (&h[0]); // return whole string
if (++dots == 2)
return (&h[l]);
- maybe = &h[l];
+ l -=1; //back over the dot
}
- return (maybe);
}
/*
On Friday, February 7, 2003, at 10:47 AM, Lee Howard wrote:
> On 2003.02.07 09:23 Dan Tappin wrote:
>> To add to the thread here is a excerpt from my syslog:
>> Assertion failed "Invalid Str[] index", file "../util/Str.h" line 117.
>> These are being repeated over and over.
>> I searched the mailing list archives but I could not find a good
>> reference to this.
>
> http://bugs.hylafax.org/bugzilla/show_bug.cgi?id=381
>
> Lee.
>
> ____________________ HylaFAX(tm) Users Mailing List
> _______________________
> To subscribe/unsubscribe, click
> http://lists.hylafax.org/cgi-bin/lsg2.cgi
> On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org <
> /dev/null
> *To learn about commercial HylaFAX(tm) support, mail
> sales@hylafax.org.*
>
____________________ HylaFAX(tm) Users Mailing List _______________________
To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
*To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*