Fix format-security warnings when building with trace-sync
[lttv.git] / lttv / lttv / sync / event_analysis_chull.c
index 21f288939c2fe1f9408cfb4d466dc22562e187fd..cc3aad52b4a3e8b2eabb98569f7e582154dd4270 100644 (file)
@@ -240,7 +240,7 @@ static void openGraphFiles(SyncState* const syncState)
                                if ((analysisData->graphsData->hullPoints[i][j]= fopen(name, "w")) ==
                                        NULL)
                                {
-                                       g_error(strerror(errno));
+                                       g_error("%s", strerror(errno));
                                }
                        }
                }
@@ -249,7 +249,7 @@ static void openGraphFiles(SyncState* const syncState)
        retval= chdir(cwd);
        if (retval == -1)
        {
-               g_error(strerror(errno));
+               g_error("%s", strerror(errno));
        }
        free(cwd);
 }
@@ -329,7 +329,7 @@ static void closeGraphFiles(SyncState* const syncState)
                                retval= fclose(analysisData->graphsData->hullPoints[i][j]);
                                if (retval != 0)
                                {
-                                       g_error(strerror(errno));
+                                       g_error("%s", strerror(errno));
                                }
                        }
                }
@@ -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.024039 seconds and 4 git commands to generate.