diff ChangeLog @ 13259:5aa26fc2aec0

vasnprintf: Correct errno value in case of out-of-memory.
author Bruno Haible <bruno@clisp.org>
date Sat, 24 Apr 2010 17:18:48 +0200
parents 22d0473cd1a8
children 45dad26de835
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+	vasnprintf: Correct errno value in case of out-of-memory.
+	* lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
+	or sprintf. Use the errno value from SNPRINTF or sprintf.
+	Reported by Ian Beckwith <ianb@erislabs.net>.
+
 2010-04-24  Bruno Haible  <bruno@clisp.org>
 
 	ansi-c++-opt: Find correct compiler when cross-compiling.