Make sure the search results don't overflow the incoming 8192 bytes sized
commit9a1c77585b38d92ff487e3c095818bd3cbc2f996
authorHans Petter Selasky <hps@selasky.org>
Fri, 7 Oct 2022 10:49:11 +0000 (7 12:49 +0200)
committerHans Petter Selasky <hps@selasky.org>
Fri, 7 Oct 2022 10:49:11 +0000 (7 12:49 +0200)
treec6be81a4e688e6d2c6965f273a9d07dda64addcf
parent08bf033917388745b3a706ca58b572fcd1fc0452
Make sure the search results don't overflow the incoming 8192 bytes sized
buffer when using the zynaddsubfx-ext-gui .

Because the search results also include the full path of the banks
the maximum message size may vary. Sometimes banks are installed in
/usr/local and sometimes in /usr . For now simply print a warning message
when this happens and continue, for example when searching for "str"
in the bank search under FreeBSD:

guimain.cpp:571 Received too many bytes 9052 > 8192 (ignored)

Signed-off-by: Hans Petter Selasky <hps@selasky.org>
src/UI/guimain.cpp