diff --git a/CHANGELOG.md b/CHANGELOG.md index 827f413f1..d4ace9afc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.6.5 + +Fixes parsing quoted values in config files + # 1.6.4 Releasing this, so fedora can package fastfetch. Thanks to @jonathanspw for doing that! diff --git a/CMakeLists.txt b/CMakeLists.txt index bb625d600..fbe94e2ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs project(fastfetch - VERSION 1.6.4 + VERSION 1.6.5 LANGUAGES C ) diff --git a/src/fastfetch.c b/src/fastfetch.c index 30f8a044a..c7ebb61f1 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -497,6 +497,7 @@ static void parseConfigFile(FFinstance* instance, FFdata* data, FILE* file) if((*valueStart == '"' || *valueStart == '\'') && *valueStart == *lineEnd && lineEnd > valueStart) { ++valueStart; + *lineEnd = '\0'; --lineEnd; }