hydrogen-music/hydrogen — pull request #92 by GregoryBonik (2013-03-09 16:08:09+00:00)
Title: Fix buffer overflow in updateMixerLine()

Hydrogen randomly crashes with glibc error *** buffer overflow detected ***, which a stack trace pointing to the function MixerLine::updateMixerLine() and then sprintf(). This patch fixes this by replacing sprintf() with snprintf(). Also, the argument is now converted from float to double, since printf-like functions expect a double for "%f" (see man 3 sprintf).