]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2008/003322.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2008 / 003322.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] Migrating Modules to 5.1...
5 </TITLE>
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">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] Migrating Modules to 5.1...</H1>
15 <B>WILMES Andreas</B>
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
18 </A><BR>
19 <I>Mon Aug 18 16:59:20 PDT 2008</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="003321.html">[IRCServices Coding] Disable getpass
22 </A></li>
23 <LI>Next message: <A HREF="003323.html">[IRCServices Coding] Migrating Modules to 5.1...
24 </A></li>
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>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>Hy,
35
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 &quot;char pass[PASSMAX];&quot; were replaced by &quot;Password pass;&quot;, so my module
39 won't compile anymore:
40
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'
44
45
46 Line of this code:
47
48 static void copy_data(MYSQL_ROW row, unsigned long *lengths, NickInfo
49 *ni, NickGroupInfo *ngi) {
50 char temp[100];
51 strncpy(ngi-&gt;pass, row[field(MYSQL_FIELD_USERINFO_PASSWORD)], PASSMAX &lt;
52 lengths[field(MYSQL_FIELD_USERINFO_PASSWORD)] ? PASSMAX :
53 lengths[field(MYSQL_FIELD_USERINFO_PASSWORD)] + 1);
54 ....
55
56 When I replace &quot;ngi-&gt;pass&quot; by &quot;&amp;ngi-&gt;pass&quot; there's only a warning left,
57 but by running this function copy_data my services crashes.
58
59 Any Ideas?
60 Regards.
61 </PRE>
62
63
64 <!--endarticle-->
65 <HR>
66 <P><UL>
67 <!--threads-->
68 <LI>Previous message: <A HREF="003321.html">[IRCServices Coding] Disable getpass
69 </A></li>
70 <LI>Next message: <A HREF="003323.html">[IRCServices Coding] Migrating Modules to 5.1...
71 </A></li>
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>
77 </LI>
78 </UL>
79
80 </body></html>