mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ges-ui: Ensure that string is \0-terminated
CID 1320699
This commit is contained in:
parent
1c6893c57d
commit
7c117fe8e8
1 changed files with 2 additions and 1 deletions
|
@ -523,7 +523,8 @@ str_to_time (const gchar * str)
|
||||||
|
|
||||||
m = strtoull (buf, NULL, 10);
|
m = strtoull (buf, NULL, 10);
|
||||||
|
|
||||||
strncpy (buf, &str[6], sizeof (buf));
|
strncpy (buf, &str[6], sizeof (buf) - 1);
|
||||||
|
buf[sizeof (buf) - 1] = '\0';
|
||||||
s = strtod (buf, NULL);
|
s = strtod (buf, NULL);
|
||||||
|
|
||||||
ret = (h * 3600 * GST_SECOND) +
|
ret = (h * 3600 * GST_SECOND) +
|
||||||
|
|
Loading…
Reference in a new issue