]> git.sur5r.net Git - i3/i3/blobdiff - src/config_parser.c
Fix v3 to v4 crash with a variable with longer name than value
[i3/i3] / src / config_parser.c
index 4e66c91109f3f8f37d0dfddbeacc2da6545cb23c..a27cfc5f2bee9879d2fde8049334630e39201fe7 100644 (file)
@@ -1065,7 +1065,7 @@ bool parse_file(const char *f, bool use_nagbar) {
     int version = detect_version(buf);
     if (version == 3) {
         /* We need to convert this v3 configuration */
-        char *converted = migrate_config(new, stbuf.st_size);
+        char *converted = migrate_config(new, strlen(new));
         if (converted != NULL) {
             ELOG("\n");
             ELOG("****************************************************************\n");