Code

libmpdclient: smaller error buffer
authorMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 23:05:16 +0000 (01:05 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 17 Sep 2008 23:05:16 +0000 (01:05 +0200)
commit96683ca4d3611e7c25364a1dbf326435727757d2
treeccffe99ad0ff5113ed19d93f8fb68dfe56d7df7e
parentbf8da42199fe351c844338ac6c09d715b25d34ed
libmpdclient: smaller error buffer

512 characters should be well enough for error messages which are
actually being displayed somewhere.  Use sizeof(errorStr) instead of
MPD_BUFFER_MAX_LENGTH everywhere.  Do proper length checking when
copying the output buffer to errorStr.
src/libmpdclient.c
src/libmpdclient.h