diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-12-19 16:08:09 +0100 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-12-19 16:08:09 +0100 |
commit | 6d63e2e47ac83c5da4362e93009a395d1808e01f (patch) | |
tree | 700afa3b6d79048f49a9935a6ae8154aa04433a9 | |
parent | d57bf656fd35eff82034dea5072014bffdc92f82 (diff) | |
download | pianobar-windows-6d63e2e47ac83c5da4362e93009a395d1808e01f.tar.gz pianobar-windows-6d63e2e47ac83c5da4362e93009a395d1808e01f.tar.bz2 pianobar-windows-6d63e2e47ac83c5da4362e93009a395d1808e01f.zip |
Fix printf format for size_t
-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 |