From 5adcc58448e6ab434c5b57f5892759d06d89ca31 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 15 Oct 2019 14:01:30 +0000 Subject: [PATCH] country: Remove string termination This should not be necessary and overwrites the buffer in some cases. Signed-off-by: Michael Tremer --- src/loc/country.h | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.47.3