A '\0' might have been written above the buffer array bounds.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
status = snprintf (buf, buf_len, "%s::%s", base_name, module);
if ((status < 0) || (status >= buf_len))
return (NULL);
status = snprintf (buf, buf_len, "%s::%s", base_name, module);
if ((status < 0) || (status >= buf_len))
return (NULL);
+ buf[buf_len - 1] = '\0';
return (buf);
} /* char *get_module_name */
return (buf);
} /* char *get_module_name */