libmpdclient icon indicating copy to clipboard operation
libmpdclient copied to clipboard

buffer: refactor buffer to be dynamically-sized

Open cataldor opened this issue 5 years ago • 0 comments

Allow the internal buffer of libmpdclient to grow dynamically in size as needed by mpd_{async/sync}_send_command. Previously, the buffer was limited to 4KiB.

Address issue reported downstream by Debian[1] and upstream by kaliko (@mxjeff)[2] [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953110 [2] https://github.com/MusicPlayerDaemon/libmpdclient/issues/51

Hello, this is a solution to issue #51. It requires refactoring the buffer source code. I will provide another solution in case you want to stick with the hardcoded limit.

cataldor avatar Mar 27 '20 14:03 cataldor