[vlc-commits] messages: fix filename extraction
Rémi Denis-Courmont
git at videolan.org
Sun Dec 13 17:20:28 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 9 21:25:56 2015 +0200| [ee625c6309417edb5fced99bc1311c4124269ce0] | committer: Rémi Denis-Courmont
messages: fix filename extraction
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee625c6309417edb5fced99bc1311c4124269ce0
---
src/misc/messages.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/messages.c b/src/misc/messages.c
index 84a5ea1..b838bdd 100644
--- a/src/misc/messages.c
+++ b/src/misc/messages.c
@@ -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;
More information about the vlc-commits
mailing list