more debugging

This commit is contained in:
Andrew Pamment 2017-04-23 13:29:29 +10:00
parent 0d857ec599
commit 95e5aa1cec

View File

@ -324,7 +324,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
ptr2p = ptr2; ptr2p = ptr2;
memset(ptr2, 0, (g + 1) * 2); memset(ptr2, 0, (g + 1) * 2);
inc = g; inc = g;
ouc = g * 2; ouc = (g + 1) * 2;
iconv(ic, &ptr1, &inc, &ptr2, &ouc); iconv(ic, &ptr1, &inc, &ptr2, &ouc);
write(master, ptr2p, ptr2 - ptr2p); write(master, ptr2p, ptr2 - ptr2p);
@ -359,7 +359,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
ptr2p = ptr2; ptr2p = ptr2;
memset(ptr2, 0, (g + 1) * 2); memset(ptr2, 0, (g + 1) * 2);
inc = g; inc = g;
ouc = g * 2; ouc = (g + 1) * 2;
sz = iconv(ic, &ptr1, &inc, &ptr2, &ouc); sz = iconv(ic, &ptr1, &inc, &ptr2, &ouc);
if (sz == -1) { if (sz == -1) {