Commit ee625c63 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

messages: fix filename extraction

parent 608d433e
......@@ -96,7 +96,7 @@ void vlc_vaLog (vlc_object_t *obj, int type, const char *module,
/* Get basename from the module filename */
char *p = strrchr(module, '/');
if (p != NULL)
module = p;
module = p + 1;
p = strchr(module, '.');
size_t modlen = (p != NULL) ? (p - module) : 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment