Commit 2f3c5cd1 authored by Mathieu Stefani's avatar Mathieu Stefani

Fixed a memset with a size of 0

parent 1067b3bf
...@@ -24,7 +24,7 @@ Q::toString() const { ...@@ -24,7 +24,7 @@ Q::toString() const {
return "q=1"; return "q=1";
char buff[sizeof("q=0.99")]; char buff[sizeof("q=0.99")];
memset(buff, sizeof buff, 0); memset(buff, 0, sizeof buff);
if (val_ % 10 == 0) if (val_ % 10 == 0)
snprintf(buff, sizeof buff, "q=%.1f", val_ / 100.0); snprintf(buff, sizeof buff, "q=%.1f", val_ / 100.0);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment