diff options
-rw-r--r-- | libwaitress/src/waitress.c | 2 | ||||
-rw-r--r-- | src/player.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libwaitress/src/waitress.c b/libwaitress/src/waitress.c index 545aa0a..8738a9e 100644 --- a/libwaitress/src/waitress.c +++ b/libwaitress/src/waitress.c @@ -372,7 +372,7 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) { WRITE_RET (writeBuf, strlen (writeBuf)); if (waith->method == WAITRESS_METHOD_POST && waith->postData != NULL) { - snprintf (writeBuf, sizeof (writeBuf), "Content-Length: %u\r\n", + snprintf (writeBuf, sizeof (writeBuf), "Content-Length: %zu\r\n", strlen (waith->postData)); WRITE_RET (writeBuf, strlen (writeBuf)); } diff --git a/src/player.c b/src/player.c index 2878f79..8e8be2c 100644 --- a/src/player.c +++ b/src/player.c @@ -449,7 +449,7 @@ void *BarPlayerThread (void *data) { /* This loop should work around song abortions by requesting the * missing part of the song */ do { - snprintf (extraHeaders, sizeof (extraHeaders), "Range: bytes=%u-\r\n", + snprintf (extraHeaders, sizeof (extraHeaders), "Range: bytes=%zu-\r\n", player->bytesReceived); wRet = WaitressFetchCall (&player->waith); } while (wRet == WAITRESS_RET_PARTIAL_FILE || wRet == WAITRESS_RET_TIMEOUT |