shithub: libacme

Download patch

ref: 1597080e847d73678ccc1746350d1e29aa7e226b
parent: 997dd8b1ff8c25dde5ed469d08be451123a17d89
author: james palmer <james@biobuf.link>
date: Thu Jun 24 12:42:38 EDT 2021

awinload: oops had these fds backwards

--- a/window.c
+++ b/window.c
@@ -102,8 +102,8 @@
 	}
 		
 	fprint(w->addrfd, ",");
-	while((n = read(w->datafd, buf, sizeof(buf))) > 0)
-		write(fd, buf, n);
+	while((n = read(fd, buf, sizeof(buf))) > 0)
+		write(w->datafd, buf, n);
 		
 	if(n < 0) {
 		werrstr("awinload read failed: %r");