diff options
author | teor <teor@torproject.org> | 2019-09-03 16:05:56 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-09-04 14:06:58 +1000 |
commit | 9c798dd5a5b48637c14fe6bc46ae4701c5597526 (patch) | |
tree | 9f7951eda798018cf5ea7f916cc0a166bf90ff5d /src/lib/err | |
parent | 7fa624537cded3859a6f8408f9613bc53b6a1875 (diff) | |
download | tor-9c798dd5a5b48637c14fe6bc46ae4701c5597526.tar.gz tor-9c798dd5a5b48637c14fe6bc46ae4701c5597526.zip |
torerr: Fix a comment typo and update the comment for format_number_sigsafe()
Closes 31612.
Diffstat (limited to 'src/lib/err')
-rw-r--r-- | src/lib/err/torerr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/err/torerr.c b/src/lib/err/torerr.c index ecffb7f7bb..6cf213e7c4 100644 --- a/src/lib/err/torerr.c +++ b/src/lib/err/torerr.c @@ -227,8 +227,7 @@ format_number_sigsafe(unsigned long x, char *buf, int buf_len, * does not guarantee that an int is wider than a char (an int must be at * least 16 bits but it is permitted for a char to be that wide as well), we * can't assume a signed int is sufficient to accommodate an unsigned char. - * Thus, format_helper_exit_status() will still need to emit any require '-' - * on its own. + * Thus, callers will still need to add any required '-' to the final string. * * For most purposes, you'd want to use tor_snprintf("%x") instead of this * function; it's designed to be used in code paths where you can't call |