From: Eli Friedman Date: Sat, 23 May 2009 02:03:39 +0000 (+0000) Subject: PR4247: Widen the buffer slightly so it can hold all the definitions for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf22be630e3d45c5c9c37bacb6325e16314431a6;p=clang PR4247: Widen the buffer slightly so it can hold all the definitions for PPC double double. (No testcase because no normal target uses the format at the moment.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72310 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/InitPreprocessor.cpp b/lib/Frontend/InitPreprocessor.cpp index 8f4cdbc5f5..a3fa6ebe64 100644 --- a/lib/Frontend/InitPreprocessor.cpp +++ b/lib/Frontend/InitPreprocessor.cpp @@ -161,7 +161,7 @@ static void DefineFloatMacros(std::vector &Buf, const char *Prefix, "1.18973149535723176502e+4932L", "1.79769313486231580793728971405301e+308L"); - char MacroBuf[60]; + char MacroBuf[64]; sprintf(MacroBuf, "__%s_DENORM_MIN__=%s", Prefix, DenormMin); DefineBuiltinMacro(Buf, MacroBuf); sprintf(MacroBuf, "__%s_DIG__=%d", Prefix, Digits);