diff options
author | Nico Weber <thakis@chromium.org> | 2013-05-24 01:20:22 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2013-05-24 01:20:22 (GMT) |
commit | 3c8b7515f41f5b636a437a808a77fcad959b6831 (patch) | |
tree | 61adc066f9d47ea9031aadb6ab301be38c6fa738 /src/util.h | |
parent | 31ef1415f208e04000424e6fc446fe4377bc7ed3 (diff) | |
download | Ninja-3c8b7515f41f5b636a437a808a77fcad959b6831.zip Ninja-3c8b7515f41f5b636a437a808a77fcad959b6831.tar.gz Ninja-3c8b7515f41f5b636a437a808a77fcad959b6831.tar.bz2 |
Don't use va_start() with reference parameters, it's undefined behavior.
Should fix issue #584.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -59,7 +59,7 @@ const char* SpellcheckStringV(const string& text, const vector<const char*>& words); /// Like SpellcheckStringV, but takes a NULL-terminated list. -const char* SpellcheckString(const string& text, ...); +const char* SpellcheckString(const char* text, ...); /// Removes all Ansi escape codes (http://www.termsys.demon.co.uk/vtansi.htm). string StripAnsiEscapeCodes(const string& in); |