num2str(): Use asprintf() instead of malloc()
authorBart Van Assche <bvanassche@acm.org>
Thu, 2 Jul 2020 21:47:01 +0000 (14:47 -0700)
committerBart Van Assche <bvanassche@acm.org>
Thu, 2 Jul 2020 22:27:16 +0000 (15:27 -0700)
commit38b00241e3bd97b1aed6b669b357f2ec89743f0c
tree0966fdc1a632ec726050e2c18d8900df06efae27
parent797ef7b209d7423f34dfe513beeede21d2efddc4
num2str(): Use asprintf() instead of malloc()

This patch reduces the size of the buffer allocated by num2str().

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
lib/num2str.c