Skip to content

Commit 2749831

Browse files
committed
Prevent compiler warning
1 parent e358c3f commit 2749831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parametersparser.c++

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ char* toHex(char* s) {
5858
result[2 * i + 1] = HEX_CHARS[c & 0xF];
5959
}
6060

61-
result[len * 2] = NULL;
61+
result[len * 2] = '\0';
6262
return result;
6363
}
6464

0 commit comments

Comments
 (0)