shithub: libacme

Download patch

ref: 997dd8b1ff8c25dde5ed469d08be451123a17d89
parent: 2a9f9c14cc2ef1fad0af586db556a0fcc803a4a4
author: james palmer <james@biobuf.link>
date: Thu Jun 24 10:31:44 EDT 2021

awinsave -> awinput: this didn't match up with the header file. oops :P

--- a/window.c
+++ b/window.c
@@ -115,7 +115,7 @@
 }
 
 int
-awinsave(AWin *w, char *file)
+awinput(AWin *w, char *file)
 {
 	int fd;
 	char buf[8192];
@@ -123,7 +123,7 @@
 	
 	fd = open(file, OWRITE);
 	if(fd < 0) {
-		werrstr("awinload open failed: %r");
+		werrstr("awinput open failed: %r");
 		return -1;
 	}
 		
@@ -132,7 +132,7 @@
 		write(w->datafd, buf, n);
 		
 	if(n < 0) {
-		werrstr("awinload read failed: %r");
+		werrstr("awinput read failed: %r");
 		close(fd);
 		return -1;
 	}