Skip to content

Commit b87983c

Browse files
Fix parsing quoted values in config files
1 parent 779dbab commit b87983c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.6.5
2+
3+
Fixes parsing quoted values in config files
4+
15
# 1.6.4
26

37
Releasing this, so fedora can package fastfetch. Thanks to @jonathanspw for doing that!

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs
22

33
project(fastfetch
4-
VERSION 1.6.4
4+
VERSION 1.6.5
55
LANGUAGES C
66
)
77

src/fastfetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ static void parseConfigFile(FFinstance* instance, FFdata* data, FILE* file)
497497
if((*valueStart == '"' || *valueStart == '\'') && *valueStart == *lineEnd && lineEnd > valueStart)
498498
{
499499
++valueStart;
500+
*lineEnd = '\0';
500501
--lineEnd;
501502
}
502503

0 commit comments

Comments
 (0)