Skip to content

Commit

Permalink
Fix parsing quoted values in config files
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDierheimer committed Aug 22, 2022
1 parent 779dbab commit b87983c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
)

Expand Down
1 change: 1 addition & 0 deletions src/fastfetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ static void parseConfigFile(FFinstance* instance, FFdata* data, FILE* file)
if((*valueStart == '"' || *valueStart == '\'') && *valueStart == *lineEnd && lineEnd > valueStart)
{
++valueStart;
*lineEnd = '\0';
--lineEnd;
}

Expand Down

0 comments on commit b87983c

Please sign in to comment.