From 1161725b8ec3934ac25f12b6d8ae81bc9ffa8b2c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 1 Sep 2011 11:27:37 +0200 Subject: [PATCH] * desc.c (decode_select): Set tcp->auxstr as late as possible. Signed-off-by: Denys Vlasenko --- desc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desc.c b/desc.c index 4d46339e..9a858669 100644 --- a/desc.c +++ b/desc.c @@ -549,7 +549,6 @@ decode_select(struct tcb *tcp, long *args, enum bitness_t bitness) if (!fds) die_out_of_memory(); - tcp->auxstr = outstr; outptr = outstr; sep = ""; for (i = 0; i < 3; i++) { @@ -594,6 +593,7 @@ decode_select(struct tcb *tcp, long *args, enum bitness_t bitness) } #endif /* LINUX */ *outptr = '\0'; + tcp->auxstr = outstr; return RVAL_STR; #undef end_outstr } -- 2.40.0