Fix parsing quoted values in config files

This commit is contained in:
Linus Dierheimer
2022-08-22 12:14:08 +02:00
parent 779dbab647
commit b87983c86b
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -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!
+1 -1
View File
@@ -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
)
+1
View File
@@ -497,6 +497,7 @@ static void parseConfigFile(FFinstance* instance, FFdata* data, FILE* file)
if((*valueStart == '"' || *valueStart == '\'') && *valueStart == *lineEnd && lineEnd > valueStart)
{
++valueStart;
*lineEnd = '\0';
--lineEnd;
}