examples/imap-append: fix end-of-data check
Reported-by: Alexander Chuykov Fixes #7774 Closes #7775
This commit is contained in:
parent
60738f398c
commit
5c4e46c724
@ -69,7 +69,7 @@ static size_t payload_source(char *ptr, size_t size, size_t nmemb, void *userp)
|
||||
|
||||
data = &payload_text[upload_ctx->bytes_read];
|
||||
|
||||
if(data) {
|
||||
if(*data) {
|
||||
size_t len = strlen(data);
|
||||
if(room < len)
|
||||
len = room;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user