changeset 3:e94940ca17e7

Write to *stdout* not stdin. Duh!
author William Astle <lost@l-w.ca>
date Sun, 29 May 2016 11:10:25 -0600
parents 2f2cbd2d2561
children 56f53e48ab50
files src/lwwire.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lwwire.c	Sun May 29 10:44:29 2016 -0600
+++ b/src/lwwire.c	Sun May 29 11:10:25 2016 -0600
@@ -487,7 +487,7 @@
 	
 	while (towrite > 0)
 	{
-		rv = write(0, buf, towrite);
+		rv = write(1, buf, towrite);
 		if (rv == towrite)
 			break;
 		if (rv < 0)