[openal] OpenAL fails with OSS on FreeBSD

Yuri yuri at rawbw.com
Thu Dec 1 22:37:03 EST 2016


On 12/01/2016 19:25, Chris Robinson wrote:
>
> https://github.com/qTox/qTox/blob/master/src/audio/audio.cpp#L404
>
> I think there might be a bug. It's taking a QString, converting it to 
> a UTF-8 QByteArray, and then using constData() to get a C-style 
> string. I don't believe that's guaranteed to be null-terminated 
> though, so if not it can have junk characters after the name and won't 
> be recognized. 


It is guaranteed to be 0-terminated: 
http://doc.qt.io/qt-4.8/qstring.html#constData


Yuri



More information about the openal mailing list