mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:27:16 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue