summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2013-05-24 01:20:22 (GMT)
committerNico Weber <thakis@chromium.org>2013-05-24 01:20:22 (GMT)
commit3c8b7515f41f5b636a437a808a77fcad959b6831 (patch)
tree61adc066f9d47ea9031aadb6ab301be38c6fa738 /src/util.h
parent31ef1415f208e04000424e6fc446fe4377bc7ed3 (diff)
downloadNinja-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 9740565..6788410 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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);