Commit c281c6e0 authored by Colin Harrison's avatar Colin Harrison Committed by Mike Gabriel

Typo in xserver Xvasprintf()

Backported from X.org: commit 1324b0ca9f8a7fdaf03b374c75eb3c9df407c2f1 Author: Colin Harrison <colin.harrison@virgin.net> Date: Fri Dec 10 00:08:24 2010 +0000 Typo in xserver Xvasprintf() I needed this patch in the wrapper around vsnprintf() in os/xprintf.c (MinGW for Windows build) to correct various crashes. Reviewed-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarMihai Moldovan <ionic@ionic.de>
parent 1e3a9748
......@@ -128,7 +128,7 @@ Xvasprintf(char **ret, const char *_X_RESTRICT_KYWD format, va_list va)
}
else
{
ret[r] = 0;
(*ret)[r] = 0;
return r;
}
}
......@@ -164,7 +164,7 @@ Xvasprintf(char **ret, const char *_X_RESTRICT_KYWD format, va_list va)
return -1;
vsnprintf(*ret, size + 1, format, va);
ret[size] = 0;
(*ret)[size] = 0;
return size;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment