Commit Diff


commit - 228faf4bb0e11ed7b78392cd2ae65b016550c9b0
commit + c1ce79919bdc9d72d4eb38535e842c83d3e797b2
blob - af247b0d3fb26bd4df9817b85802d5067a695e16
blob + a752190fc69ea84c70541d0785a534cf85d3ecb3
--- libexec/got-fetch-http/got-fetch-http.c
+++ libexec/got-fetch-http/got-fetch-http.c
@@ -197,7 +197,7 @@ http_open(struct bufio *bio, int https, const char *me
 	do {
 		r = bufio_write(bio);
 		if (r == -1 && errno != EAGAIN)
-			errx(1, "bufio_read: %s", bufio_io_err(bio));
+			errx(1, "bufio_write: %s", bufio_io_err(bio));
 	} while (bio->wbuf.len != 0);
 
 	return 0;