efreetd - warn - expand buffer to avoid truncation by snprintf
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 8 Nov 2018 16:28:19 +0000 (16:28 +0000)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 06:58:45 +0000 (15:58 +0900)
src/bin/efreet/efreetd.c

index 6f84710..66cc0f6 100644 (file)
@@ -30,7 +30,7 @@ quit(void)
 int
 main(int argc, char *argv[])
 {
-   char path[PATH_MAX], buf[PATH_MAX];
+   char path[PATH_MAX + 128], buf[PATH_MAX];
    FILE *log;
    int fd;
    const char *log_file_dir = NULL;