+2003-10-19 Jim Meyering <jim@meyering.net>
+
+ * vasnprintf.c (VASNPRINTF): Work around losing snprintf on HPUX 10.20.
+
2003-10-09 Bruno Haible <bruno@clisp.org>
* relocatable.c: Include xalloc.h instead of xmalloc.h.
p[1] = '\0';
continue;
}
- count = retcount;
+ else
+ {
+ /* Look at the snprintf() return value. */
+ if (retcount < 0)
+ {
+ /* HP-UX 10.20 snprintf() is doubly deficient:
+ It doesn't understand the '%n' directive,
+ *and* it returns -1 (rather than the length
+ that would have been required) when the
+ buffer is too small. */
+ size_t bigger_need = 2 * allocated + 12;
+ ENSURE_ALLOCATION (bigger_need);
+ continue;
+ }
+ else
+ count = retcount;
+ }
}
#endif
+2003-10-19 Jim Meyering <jim@meyering.net>
+
+ * vasnprintf.c (VASNPRINTF): Work around losing snprintf on HPUX 10.20.
+
2003-08-29 Bruno Haible <bruno@clisp.org>
* configure.ac: Test whether _snprintf is declared, not only existent
p[1] = '\0';
continue;
}
- count = retcount;
+ else
+ {
+ /* Look at the snprintf() return value. */
+ if (retcount < 0)
+ {
+ /* HP-UX 10.20 snprintf() is doubly deficient:
+ It doesn't understand the '%n' directive,
+ *and* it returns -1 (rather than the length
+ that would have been required) when the
+ buffer is too small. */
+ size_t bigger_need = 2 * allocated + 12;
+ ENSURE_ALLOCATION (bigger_need);
+ continue;
+ }
+ else
+ count = retcount;
+ }
}
#endif