From 7c4b4142997c724e1eadf66a91c2cdae55ea9f35 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 23 Apr 2017 13:09:24 +1000 Subject: [PATCH] whoops --- doors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doors.c b/doors.c index 98d8473..213984b 100644 --- a/doors.c +++ b/doors.c @@ -326,7 +326,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c ouc = g * 2; iconv(ic, &ptr1, &inc, &ptr2, &ouc); - write(master, ptr2p, ptr2p - ptr2); + write(master, ptr2p, ptr2 - ptr2p); free(ptr2p); iconv_close(ic); @@ -361,7 +361,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c ouc = g * 2; iconv(ic, &ptr1, &inc, &ptr2, &ouc); - write(door_out, ptr2p, ptr2p - ptr2); + write(door_out, ptr2p, ptr2 - ptr2p); free(ptr2p); iconv_close(ic);