ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/modules.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/modules.c (file contents):
Revision 7498 by michael, Wed Feb 3 18:29:44 2016 UTC vs.
Revision 7499 by michael, Tue Mar 22 19:47:12 2016 UTC

# Line 230 | Line 230 | mod_add_path(const char *path)
230      return;
231  
232    pathst = xcalloc(sizeof(struct module_path));
233 <
234 <  strlcpy(pathst->path, path, sizeof(pathst->path));
233 >  pathst->path = xstrdup(path);
234    dlinkAdd(pathst, &pathst->node, &modules_path);
235   }
236  
# Line 247 | Line 246 | add_conf_module(const char *name)
246    struct module_path *pathst;
247  
248    pathst = xcalloc(sizeof(struct module_path));
249 <
251 <  strlcpy(pathst->path, name, sizeof(pathst->path));
249 >  pathst->path = xstrdup(name);
250    dlinkAdd(pathst, &pathst->node, &modules_conf);
251   }
252  
# Line 266 | Line 264 | modules_conf_clear(void)
264      struct module_path *path = modules_path.head->data;
265  
266      dlinkDelete(&path->node, &modules_path);
267 +    xfree(path->path);
268      xfree(path);
269    }
270  
# Line 274 | Line 273 | modules_conf_clear(void)
273      struct module_path *path = modules_conf.head->data;
274  
275      dlinkDelete(&path->node, &modules_conf);
276 +    xfree(path->path);
277      xfree(path);
278    }
279   }

Diff Legend

– Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)