Josh Stone 26f669
commit 67ce417eab034187f0ea952e78c547051da4b276
Josh Stone 26f669
Author: Josh Stone <jistone@redhat.com>
Josh Stone 26f669
Date:   Tue Dec 3 14:03:21 2013 -0800
Josh Stone 26f669
Josh Stone 26f669
    DatabaseOutputDriver: Print raw buffer via %s
Josh Stone 26f669
    
Josh Stone 26f669
    This is needed to pass -Werror=format-security, which flagged this
Josh Stone 26f669
    having passed the buffer as the format argument.
Josh Stone 26f669
    
Josh Stone 26f669
    Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1037048
Josh Stone 26f669
Josh Stone 26f669
diff --git a/src/DatabaseOutputDriver.C b/src/DatabaseOutputDriver.C
Josh Stone 26f669
index 0a866dbea458..2769d584e9be 100644
Josh Stone 26f669
--- a/src/DatabaseOutputDriver.C
Josh Stone 26f669
+++ b/src/DatabaseOutputDriver.C
Josh Stone 26f669
@@ -311,7 +311,7 @@ void DatabaseOutputDriver::writeSQLLog() {
Josh Stone 26f669
        else
Josh Stone 26f669
            buf.clear();
Josh Stone 26f669
 
Josh Stone 26f669
-       fprintf(out, buf.c_str());
Josh Stone 26f669
+       fprintf(out, "%s", buf.c_str());
Josh Stone 26f669
        delete [] buffer;
Josh Stone 26f669
    }
Josh Stone 26f669
    if (buf.rfind("RESULT:") == std::string::npos) {