1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices Coding] Migrating Modules to
5.1...
6 <LINK REL=
"Index" HREF=
"index.html" >
7 <LINK REL=
"made" HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Migrating%20Modules%20to%205.1...&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=
"003321.html">
11 <LINK REL=
"Next" HREF=
"003323.html">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices Coding] Migrating Modules to
5.1...
</H1>
16 <A HREF=
"mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20Migrating%20Modules%20to%205.1...&In-Reply-To="
17 TITLE=
"[IRCServices Coding] Migrating Modules to 5.1...">administrator at webspace.ms
19 <I>Mon Aug
18 16:
59:
20 PDT
2008</I>
21 <LI>Previous message:
<A HREF=
"003321.html">[IRCServices Coding] Disable getpass
23 <LI>Next message:
<A HREF=
"003323.html">[IRCServices Coding] Migrating Modules to
5.1...
25 <LI> <B>Messages sorted by:
</B>
26 <a href=
"date.html#3322">[ date ]
</a>
27 <a href=
"thread.html#3322">[ thread ]
</a>
28 <a href=
"subject.html#3322">[ subject ]
</a>
29 <a href=
"author.html#3322">[ author ]
</a>
36 I'm migrating my old modules for ircservices-
5.1.11, but I've seen that
37 there were many changes in the nickgroupinfo_ struct.
38 "char pass[PASSMAX];
" were replaced by
"Password pass;
", so my module
39 won't compile anymore:
41 modules/nickserv/dbsynch.c: In function `copy_data':
42 modules/nickserv/dbsynch.c:
83: error: incompatible type for argument
1
43 of `__builtin_strncpy'
48 static void copy_data(MYSQL_ROW row, unsigned long *lengths, NickInfo
49 *ni, NickGroupInfo *ngi) {
51 strncpy(ngi-
>pass, row[field(MYSQL_FIELD_USERINFO_PASSWORD)], PASSMAX
<
52 lengths[field(MYSQL_FIELD_USERINFO_PASSWORD)] ? PASSMAX :
53 lengths[field(MYSQL_FIELD_USERINFO_PASSWORD)] +
1);
56 When I replace
"ngi-
>pass
" by
"&ngi-
>pass
" there's only a warning left,
57 but by running this function copy_data my services crashes.
68 <LI>Previous message:
<A HREF=
"003321.html">[IRCServices Coding] Disable getpass
70 <LI>Next message:
<A HREF=
"003323.html">[IRCServices Coding] Migrating Modules to
5.1...
72 <LI> <B>Messages sorted by:
</B>
73 <a href=
"date.html#3322">[ date ]
</a>
74 <a href=
"thread.html#3322">[ thread ]
</a>
75 <a href=
"subject.html#3322">[ subject ]
</a>
76 <a href=
"author.html#3322">[ author ]
</a>