diff options
author | Martin Schröder <martin@oneiros.de> | 2008-05-08 13:37:38 +0000 |
---|---|---|
committer | Martin Schröder <martin@oneiros.de> | 2008-05-08 13:37:38 +0000 |
commit | 48d2baac2b0c225552963bf0659427e6776f830a (patch) | |
tree | a90668c724ecc28eaf29960be6c389c655f3a474 /Build/source | |
parent | d805a01f2ef4c95c64ee2fcd28de2be8f7739886 (diff) |
obsdcompat 0.3
git-svn-id: svn://tug.org/texlive/trunk@7940 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/libs/obsdcompat/README | 4 | ||||
-rw-r--r-- | Build/source/libs/obsdcompat/bsd-asprintf.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/libs/obsdcompat/README b/Build/source/libs/obsdcompat/README index 0ed8c5191c7..66a97645c29 100644 --- a/Build/source/libs/obsdcompat/README +++ b/Build/source/libs/obsdcompat/README @@ -1,9 +1,9 @@ -OpenBSD-Compat for pdfTeX v0.2 +OpenBSD-Compat for pdfTeX v0.3 ============================== $Id$ Herein is a (heavily butchered) version of the openbsd-compat "library" of -openssh 4.6 for use with pdfTeX. All files have their respective copyrights and +openssh 5.0 for use with pdfTeX. All files have their respective copyrights and licenses (either BSD or public domain). Check them for license etc. Please send bug reports, offers of help, etc. to martin@pdftex.org diff --git a/Build/source/libs/obsdcompat/bsd-asprintf.c b/Build/source/libs/obsdcompat/bsd-asprintf.c index 00fa0dfd8a7..3368195d443 100644 --- a/Build/source/libs/obsdcompat/bsd-asprintf.c +++ b/Build/source/libs/obsdcompat/bsd-asprintf.c @@ -55,6 +55,7 @@ vasprintf(char **str, const char *fmt, va_list ap) if (ret >= 0 && ret < INIT_SZ) { /* succeeded with initial alloc */ *str = string; } else if (ret == INT_MAX || ret < 0) { /* Bad length */ + free(string); goto fail; } else { /* bigger than initial, realloc allowing for nul */ len = (size_t)ret + 1; |