* src/emodules-ng.c (__emodng_open_prepend_paths): Fix xstpncpy
arguments. For real this time.
* src/emodules-ng.c (__emodng_open_prepend_paths_append_exts): Ditto.
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
char *p;
p = xstpncpy(name,
(const char*)XSTRING_DATA(XCAR(path)),
- name+sizeof(name)-2);
+ sizeof(name)-2);
*p++ = '/';
*p = '\0';
xstrncpy(p, filename, name + sizeof(name) - p);
* cope with all the combinations */
char *p = xstpncpy(name,
(const char*)XSTRING_DATA(XCAR(path)),
- name+sizeof(name)-2);
+ sizeof(name)-2);
if (*(p-1) != '/') {
*p++ = '/';
*p = '\0';
}
- p = xstpncpy(p, filename, name + sizeof(name) - p);
+ p = xstpncpy(p, filename, name+sizeof(name)-p);
/* append all extensions now */
for (Lisp_Object ext = Vmodule_extensions;