From b87983c86bd514a61de842282ba263a90089b1cf Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Mon, 22 Aug 2022 12:14:08 +0200 Subject: [PATCH] Fix parsing quoted values in config files --- CHANGELOG.md | 4 ++++ CMakeLists.txt | 2 +- src/fastfetch.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) 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; }