KenjiTakahashi / pacmixer

an alsamixer alike for PulseAudio.
GNU General Public License v3.0
116 stars 7 forks source link

Add missing format string #23

Closed FuzzyNovaGoblin closed 1 year ago

FuzzyNovaGoblin commented 1 year ago

I don't actually know Objective C but the other day I tried updating pacmixer and it ended up deleting the binary and I could not live without this so I found what was breaking it for me.

From a C perspective (i.e. ignoring the Objective-C syntax and other specifics) the issue makes sense; mvwprintw takes in a C string as a format string, but only a UTF8String was provided. Just adding "%s" as an argument so that the message value can be taken in works.