Skip to content

Commit

Permalink
Update sys/net/application_layer/nanocoap/vfs.c
Browse files Browse the repository at this point in the history
Co-authored-by: fabian18 <fabian.huessler@st.ovgu.de>
  • Loading branch information
benpicco and fabian18 authored May 29, 2022
1 parent fa5bd4b commit 4017328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/application_layer/nanocoap/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ int nanocoap_vfs_put_url(const char *url, const char *src,
{
DEBUG("nanocoap: uploading %s to %s\n", src, url);

if (work_buf_len < 17) {
if (work_buf_len < coap_szx2size(0) + 1) {
return -ENOBUFS;
}

Expand Down

0 comments on commit 4017328

Please sign in to comment.