Comment 2 for bug 392372

Revision history for this message
Christian Hudon (chrish) wrote :

After some digging, it turns out that the problem was a buffer whose size was tool small to include the null character at the end. A sprintf() of a string of size 9 into a 9 bytes buffer: sprintf(msf, "%02d:%02d:%02d", minutes, seconds, frames);

The attached patch fixes the problem by increasing the size of the msf char array to 10 character (so it can also hold the null character at the end of the string). Please apply.