aboutsummaryrefslogtreecommitdiff
path: root/libXau
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2014-01-05 17:18:15 +0100
committermarha <marha@users.sourceforge.net>2014-01-05 17:18:15 +0100
commit0fd65ec557757ec8760a96400a09b8a8a92a7b14 (patch)
tree961d86d49281cf94e2dc85ffb88c6b1491036338 /libXau
parent68c12003597662f95eac07ddeee99637f7caa3e5 (diff)
parent1b37f71714e2ca4af60bd050adbbb7969534dfd6 (diff)
downloadvcxsrv-0fd65ec557757ec8760a96400a09b8a8a92a7b14.tar.gz
vcxsrv-0fd65ec557757ec8760a96400a09b8a8a92a7b14.tar.bz2
vcxsrv-0fd65ec557757ec8760a96400a09b8a8a92a7b14.zip
Merge remote-tracking branch 'origin/released'
* origin/released: randrproto libXau libxcb mesa mkfontscale pixman git update 5 Jan 2014
Diffstat (limited to 'libXau')
-rw-r--r--libXau/AuFileName.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libXau/AuFileName.c b/libXau/AuFileName.c
index e5ad5a372..69b0ec4ee 100644
--- a/libXau/AuFileName.c
+++ b/libXau/AuFileName.c
@@ -29,6 +29,7 @@ in this Software without prior written authorization from The Open Group.
#endif
#include <X11/Xauth.h>
#include <X11/Xos.h>
+#include <assert.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
@@ -72,6 +73,7 @@ XauFileName (void)
if ((size > bsize) || (buf == NULL)) {
if (buf)
free (buf);
+ assert(size > 0);
buf = malloc (size);
if (!buf) {
bsize = 0;