Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: third_party/talloc/talloc.c

Issue 6711035: Fix for talloc, in order to improve mesa shader compiler performance on windows from abysmal to m... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/talloc/chromium.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/talloc/talloc.c
===================================================================
--- third_party/talloc/talloc.c (revision 78688)
+++ third_party/talloc/talloc.c (working copy)
@@ -1722,11 +1722,9 @@
int len;
char *ret;
va_list ap2;
- char c;
- /* this call looks strange, but it makes it work on older solaris boxes */
va_copy(ap2, ap);
- len = vsnprintf(&c, 1, fmt, ap2);
+ len = vsnprintf(NULL, 0, fmt, ap2);
va_end(ap2);
if (unlikely(len < 0)) {
return NULL;
@@ -1773,10 +1771,9 @@
size_t alen;
#endif
va_list ap2;
- char c;
va_copy(ap2, ap);
- alen = vsnprintf(&c, 1, fmt, ap2);
+ alen = vsnprintf(NULL, 0, fmt, ap2);
va_end(ap2);
if (alen <= 0) {
« no previous file with comments | « third_party/talloc/chromium.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698