Browse Source

[downloader] Use a more meaningful error message when out of memory

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
cef3beaba4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/core/downloader.c

+ 1
- 1
src/core/downloader.c View File

@@ -111,7 +111,7 @@ static int downloader_ensure_size ( struct downloader *downloader,
111 111
 	if ( ! new_buffer ) {
112 112
 		DBGC ( downloader, "Downloader %p could not extend buffer to "
113 113
 		       "%zd bytes\n", downloader, len );
114
-		return -ENOBUFS;
114
+		return -ENOSPC;
115 115
 	}
116 116
 	downloader->image->data = new_buffer;
117 117
 	downloader->image->len = len;

Loading…
Cancel
Save