debugging
This commit is contained in:
parent
10bc57c164
commit
0d857ec599
6
doors.c
6
doors.c
@ -189,6 +189,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
|
|||||||
char *ptr2p;
|
char *ptr2p;
|
||||||
size_t ouc;
|
size_t ouc;
|
||||||
size_t inc;
|
size_t inc;
|
||||||
|
size_t sz;
|
||||||
|
|
||||||
timeoutpaused = 1;
|
timeoutpaused = 1;
|
||||||
|
|
||||||
@ -360,7 +361,10 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
|
|||||||
inc = g;
|
inc = g;
|
||||||
ouc = g * 2;
|
ouc = g * 2;
|
||||||
|
|
||||||
iconv(ic, &ptr1, &inc, &ptr2, &ouc);
|
sz = iconv(ic, &ptr1, &inc, &ptr2, &ouc);
|
||||||
|
if (sz == -1) {
|
||||||
|
perror("Iconv");
|
||||||
|
}
|
||||||
write(door_out, ptr2p, ptr2 - ptr2p);
|
write(door_out, ptr2p, ptr2 - ptr2p);
|
||||||
|
|
||||||
free(ptr2p);
|
free(ptr2p);
|
||||||
|
Reference in New Issue
Block a user