mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
plugin-scanner: Measure string length in bytes
g_strndup() wants a number of bytes to copy, so use strlen intead of UTF-8 strlen function.
This commit is contained in:
parent
bbafb78b1e
commit
4bb5da9c28
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue