Skip to content

Commit

Permalink
Bug fix - ensure allocation of %m format
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhams committed Oct 23, 2019
1 parent 1f773b3 commit e62aa7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libdicl/configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AC_PREREQ(2.65)
AC_INIT([libdicl],
[0.1.8],
[0.1.9],
[[email protected]])

AC_SUBST(ACLOCAL_AMFLAGS, "-I macros")
Expand Down
1 change: 1 addition & 0 deletions libdicl/gl/vasnprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2929,6 +2929,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
{
const char * ens = strerror(errno);
size_t ens_length = strlen(ens);
ENSURE_ALLOCATION (xsum (length, ens_length));
memcpy( result + length, ens, ens_length );
length += ens_length;
}
Expand Down

0 comments on commit e62aa7d

Please sign in to comment.