Fix format-security warnings when building with trace-sync
authorAlexandre Montplaisir <alexandre.montplaisir@gmail.com>
Sat, 11 Feb 2012 17:30:47 +0000 (12:30 -0500)
committerYannick Brosseau <yannick.brosseau@gmail.com>
Tue, 6 Mar 2012 20:30:11 +0000 (15:30 -0500)
Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
lttv/lttv/sync/event_analysis_chull.c

index d36022c94ec9e29484ff4c0a9b4b7ce27f1b96f7..cc3aad52b4a3e8b2eabb98569f7e582154dd4270 100644 (file)
@@ -1677,14 +1677,14 @@ static AllFactors* finalizeAnalysisCHullLP(SyncState* const syncState)
 
                                if ((fp= fopen(fileName, "w")) == NULL)
                                {
-                                       g_error(strerror(errno));
+                                       g_error("%s", strerror(errno));
                                }
                                fprintf(fp, "#%-24s %-25s %-25s %-25s\n", "x", "middle", "min", "max");
 
                                retval= chdir(cwd);
                                if (retval == -1)
                                {
-                                       g_error(strerror(errno));
+                                       g_error("%s", strerror(errno));
                                }
                                free(cwd);
 
This page took 0.024711 seconds and 4 git commands to generate.