Commit 5adcc584 authored by Michael Tremer's avatar Michael Tremer

country: Remove string termination

This should not be necessary and overwrites the buffer
in some cases.
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent cce795cc
......@@ -68,9 +68,6 @@ static inline void loc_country_code_copy(char* dst, const char* src) {
for (unsigned int i = 0; i < 2; i++) {
dst[i] = src[i];
}
// Terminate the string
dst[2] = '\0';
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment