projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbafb78
)
plugin-scanner: Measure string length in bytes
author
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Fri, 1 Dec 2017 18:33:48 +0000
(13:33 -0500)
committer
Nicolas Dufresne
<nicolas.dufresne@collabora.com>
Fri, 1 Dec 2017 18:42:00 +0000
(13:42 -0500)
g_strndup() wants a number of bytes to copy, so use strlen intead of
UTF-8 strlen function.
gst/gstplugin.c
patch
|
blob
|
history
diff --git
a/gst/gstplugin.c
b/gst/gstplugin.c
index
df47e47
..
2e58587
100644
(file)
--- a/
gst/gstplugin.c
+++ b/
gst/gstplugin.c
@@
-708,7
+708,7
@@
extract_symname (const char *filename)
if (dot)
len = dot - bname - prefix_len;
else
- len =
g_utf8_strlen (bname + prefix_len, -1
);
+ len =
strlen (bname + prefix_len
);
name = g_strndup (bname + prefix_len, len);
g_free (bname);