Skip to content

Commit 38e50a0

Browse files
committedAug 20, 2019
Fix main10 bug
1 parent 3cb4707 commit 38e50a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/config.c

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ static int parsePrefix(char *line, char *prefix)
9898
if (colpos && colpos != line) {
9999
// copy the name and the value
100100
strncpy(prefix, line, colpos - line);
101+
prefix[colpos - line] = 0;
101102

102103
return 1;
103104
} else {

0 commit comments

Comments
 (0)