Skip to content

Commit

Permalink
[downloader] Use a more meaningful error message when out of memory
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 26, 2012
1 parent 9445cb9 commit cef3bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/downloader.c
Expand Up @@ -111,7 +111,7 @@ static int downloader_ensure_size ( struct downloader *downloader,
if ( ! new_buffer ) {
DBGC ( downloader, "Downloader %p could not extend buffer to "
"%zd bytes\n", downloader, len );
return -ENOBUFS;
return -ENOSPC;
}
downloader->image->data = new_buffer;
downloader->image->len = len;
Expand Down

0 comments on commit cef3bea

Please sign in to comment.