From: Michael Tremer Date: Tue, 15 Oct 2019 14:01:30 +0000 (+0000) Subject: country: Remove string termination X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5adcc58448e6ab434c5b57f5892759d06d89ca31;p=people%2Fsennis%2Flibloc.git country: Remove string termination This should not be necessary and overwrites the buffer in some cases. Signed-off-by: Michael Tremer --- diff --git a/src/loc/country.h b/src/loc/country.h index e247d52..6dfb47b 100644 --- a/src/loc/country.h +++ b/src/loc/country.h @@ -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