1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] segmentation faults - ircservices
5.0a26
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20segmentation%20faults%20-%20ircservices%205.0a26&In-Reply-To=">
8 <META NAME=
"robots" CONTENT=
"index,nofollow">
9 <META http-equiv=
"Content-Type" content=
"text/html; charset=us-ascii">
10 <LINK REL=
"Previous" HREF=
"000454.html">
11 <LINK REL=
"Next" HREF=
"000456.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] segmentation faults - ircservices
5.0a26
</H1>
15 <B>Romek Kriszti
án
</B>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20segmentation%20faults%20-%20ircservices%205.0a26&In-Reply-To="
17 TITLE=
"[IRCServices Coding] segmentation faults - ircservices 5.0a26">r-krisztian at softhome.net
19 <I>Sun Mar
31 11:
05:
59 PST
2002</I>
21 <LI>Previous message:
<A HREF=
"000454.html">[IRCServices Coding] segmentation faults - ircservices
5.0a26
23 <LI>Next message:
<A HREF=
"000456.html">[IRCServices Coding] segmentation faults - ircservices
5.0a26
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#455">[ date ]
</a>
27 <a href=
"thread.html#455">[ thread ]
</a>
28 <a href=
"subject.html#455">[ subject ]
</a>
29 <a href=
"author.html#455">[ author ]
</a>
34 <PRE>Ahh, I was too fast. Sorry.
36 If I use /cs register and give a description, the only one word is added to
37 the description. So strtok(NULL,
"") gives back one parameter,
38 strtok_remaining() gives all that is remaining. Can you help me?
42 ----- Original Message -----
43 From: George Stamatiou
44 To:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">ircservices-coding at ircservices.za.net
</A>
45 Sent: Sunday, March
31,
2002 8:
32 PM
46 Subject: Re: [IRCServices Coding] segmentation faults - ircservices
5.0a26
50 there are a lot that you have to change.there are a lot of files with this
52 only for the /ns help is on /modules/nickserv.then pico main.c.then on
54 static void do_help(User *u)
56 char *cmd = strtok_remaining();
58 replace the last line with the
59 char *cmd = strtok(NULL,
"");
60 it's ok ONLY for the /ns help.i hope there is an easier way to replace all
65 Romek Kriszti
án wrote:
67 Thank you for your message!It's the same if I don't use enough parameters
68 for /cs register (withoutdescription). And also in version a25 it was
69 okey.How did you do that? Where is that line to modify? Which file?-----
70 Original Message -----From: George Stamatiou
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">master at xchat.gr
</A>>To:
71 <<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">ircservices-coding at ircservices.za.net
</A>>Sent: Sunday, March
31,
2002 8:
19
72 PMSubject: Re: [IRCServices Coding] segmentation faults - ircservices
5.0a26
73 well, seems that i have the same problem.when i do a /ns help serverices
74 crashes.if i replace thestrtok_remaining(); with strtok(NULL,
""); and it
75 works ok.I don't know what's going wrong.I have bahamut
1.4(
31).the version
76 before (a25) hasn't got that
77 problem.Thanks--------------------------------------------------------------
78 ----To unsubscribe or change your subscription options,
79 visit:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
80 ------------------------------------------------------------------To
81 unsubscribe or change your subscription options,
82 visit:
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices-coding">http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
</A>
91 <LI>Previous message:
<A HREF=
"000454.html">[IRCServices Coding] segmentation faults - ircservices
5.0a26
93 <LI>Next message:
<A HREF=
"000456.html">[IRCServices Coding] segmentation faults - ircservices
5.0a26
95 <LI> <B>Messages sorted by:
</B>
96 <a href=
"date.html#455">[ date ]
</a>
97 <a href=
"thread.html#455">[ thread ]
</a>
98 <a href=
"subject.html#455">[ subject ]
</a>
99 <a href=
"author.html#455">[ author ]
</a>