]> git.ipfire.org Git - thirdparty/tor.git/commit
Add a tor_asprintf() function, and use it in a couple of places.
authorNick Mathewson <nickm@torproject.org>
Thu, 25 Feb 2010 20:58:55 +0000 (15:58 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 25 Feb 2010 21:09:10 +0000 (16:09 -0500)
commit6fa8dacb97587707156507aa35141e414fc284bb
treed51c20ce8b0e65a0c17aff72a119c2b2686d1496
parent8b93dacbcfbca7b4653f7a9b727bdc209aff1e7c
Add a tor_asprintf() function, and use it in a couple of places.

asprintf() is a GNU extension that some BSDs have picked up: it does a printf
into a newly allocated chunk of RAM.

Our tor_asprintf() differs from standard asprintf() in that:
  - Like our other malloc functions, it asserts on OOM.
  - It works on windows.
  - It always sets its return-field.
configure.in
src/common/compat.c
src/common/compat.h
src/or/circuitbuild.c
src/test/test_util.c