aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db_hlr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db_hlr.c b/src/db_hlr.c
index 97cd7ed..95ba150 100644
--- a/src/db_hlr.c
+++ b/src/db_hlr.c
@@ -33,9 +33,9 @@
#define LOGHLR(imsi, level, fmt, args ...) LOGP(DAUC, level, "IMSI='%s': " fmt, imsi, ## args)
#define SL3_TXT(x, stmt, idx) do { \
- const char *_txt = (const char *) sqlite3_column_text(stmt, idx); \
- if (_txt) \
- strncpy(x, _txt, sizeof(x)); \
+ const char *_txt = (const char *) sqlite3_column_text(stmt, idx);\
+ if (_txt) \
+ strncpy(x, _txt, sizeof(x)); \
x[sizeof(x)-1] = '\0'; \
} while (0)