summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-09-19 13:25:08 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-11-09 20:10:03 +0100
commit646af9e46e2ad2a83c6bf05a819509ab760e2353 (patch)
treefb29523001bf74524b295b42c27551e5db6155c4
parent56819b9b8ca5384ce47b897561cee5497ae1e785 (diff)
downloadpianobar-windows-646af9e46e2ad2a83c6bf05a819509ab760e2353.tar.gz
pianobar-windows-646af9e46e2ad2a83c6bf05a819509ab760e2353.tar.bz2
pianobar-windows-646af9e46e2ad2a83c6bf05a819509ab760e2353.zip
waitress: update comment (buffer is \0-terminated)
-rw-r--r--src/libwaitress/waitress.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c
index fc1ec2a..c4d726a 100644
--- a/src/libwaitress/waitress.c
+++ b/src/libwaitress/waitress.c
@@ -341,7 +341,8 @@ bool WaitressSetProxy (WaitressHandle_t *waith, const char *url) {
return WaitressSplitUrl (url, &waith->proxy);
}
-/* Callback for WaitressFetchBuf, appends received data to NULL-terminated buffer
+/* Callback for WaitressFetchBuf, appends received data to \0-terminated
+ * buffer
* @param received data
* @param data size
* @param buffer structure
@@ -375,7 +376,8 @@ static WaitressCbReturn_t WaitressFetchBufCb (void *recvData, size_t recvDataSiz
/* Fetch string. Beware! This overwrites your waith->data pointer
* @param waitress handle
- * @param result buffer, malloced (don't forget to free it yourself)
+ * @param \0-terminated result buffer, malloced (don't forget to free it
+ * yourself)
*/
WaitressReturn_t WaitressFetchBuf (WaitressHandle_t *waith, char **retBuffer) {
WaitressFetchBufCbBuffer_t buffer;