aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-10 11:18:17 -0400
committerNick Mathewson <nickm@torproject.org>2013-10-10 11:18:17 -0400
commit3d817fa29cb9a0f58dd641aabf7f34301bf5809d (patch)
treec3954621fef2fd48d92fcce3c4de6e0a4191e6ce /src/common
parent97285bc46550ba135a2567d89351159da8db99f8 (diff)
parent7b1b8c36942a09ff4c50ac228f465aa4050153e3 (diff)
downloadtor-3d817fa29cb9a0f58dd641aabf7f34301bf5809d.tar.gz
tor-3d817fa29cb9a0f58dd641aabf7f34301bf5809d.zip
Merge remote-tracking branch 'origin/maint-0.2.4'
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 51d1352810..a4cdae04ee 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3486,7 +3486,7 @@ format_helper_exit_status(unsigned char child_state, int saved_errno,
* Count how many chars of space we have left, and keep a pointer into the
* current point in the buffer.
*/
- left = HEX_ERRNO_SIZE;
+ left = HEX_ERRNO_SIZE+1;
cur = hex_errno;
/* Emit child_state */
@@ -3786,7 +3786,7 @@ tor_spawn_background(const char *const filename, const char **argv,
this is used for printing out the error message */
unsigned char child_state = CHILD_STATE_INIT;
- char hex_errno[HEX_ERRNO_SIZE + 1];
+ char hex_errno[HEX_ERRNO_SIZE + 2]; /* + 1 should be sufficient actually */
static int max_fd = -1;