embryo_cc - warn - bigger buffer to avoid truncation warning
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 8 Nov 2018 16:00:11 +0000 (16:00 +0000)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 06:57:01 +0000 (15:57 +0900)
src/bin/embryo/embryo_cc_sc2.c

index c416ad1..2bd34b8 100644 (file)
@@ -144,7 +144,7 @@ plungefile(char *name, int try_currentpath, int try_includepaths)
      {
        for (i = 0; !result && (ptr = get_path(i)); i++)
          {
-            char                path[PATH_MAX];
+            char                path[PATH_MAX + PATH_MAX + 128];
 
              snprintf(path, sizeof (path), "%s/%s", ptr, name);
             path[sizeof path - 1] = '\0';      /* force '\0' termination */