1 commit 61d3516bbfce6b4e6393825329c07b1e2a88d47d
2 Author: Michael Tremer <michael.tremer@ipfire.org>
3 Date: Mon Jul 13 10:47:30 2020 +0000
5 country: Terminate buffer when reading from database
7 Compilers on ARM do not seem to initialise the buffer.
9 Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
11 diff --git a/src/country.c b/src/country.c
12 index d6ddf50..2ba93e6 100644
15 @@ -125,6 +125,9 @@ int loc_country_new_from_database_v1(struct loc_ctx* ctx, struct loc_stringpool*
17 loc_country_code_copy(buffer, dbobj->code);
22 // Create a new country object
23 int r = loc_country_new(ctx, country, buffer);