]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
torerr: Fix a comment typo and update the comment for format_number_sigsafe()
authorteor <teor@torproject.org>
Tue, 3 Sep 2019 06:05:56 +0000 (16:05 +1000)
committerteor <teor@torproject.org>
Wed, 4 Sep 2019 04:06:58 +0000 (14:06 +1000)
Closes 31612.

src/lib/err/torerr.c

index ecffb7f7bb5587889dc49bbb37795c4af6387d51..6cf213e7c4926a860ebdc50ab6c8e83ebdf46d98 100644 (file)
@@ -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