ges-ui: Ensure that string is \0-terminated

CID 1320699
This commit is contained in:
Sebastian Dröge 2017-02-28 13:02:44 +02:00
parent 1c6893c57d
commit 7c117fe8e8

View file

@ -523,7 +523,8 @@ str_to_time (const gchar * str)
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);
ret = (h * 3600 * GST_SECOND) +