summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/eurephia_nullsafe.h11
-rw-r--r--database/sqlite/sqlite.c11
2 files changed, 11 insertions, 11 deletions
diff --git a/common/eurephia_nullsafe.h b/common/eurephia_nullsafe.h
index 5f6b58c..22d50ed 100644
--- a/common/eurephia_nullsafe.h
+++ b/common/eurephia_nullsafe.h
@@ -59,6 +59,17 @@
/**
+ * Wrapper macro, which appends a string to a destination string without exceeding the size
+ * of the destination buffer.
+ *
+ * @param dest Pointer to the destination buffer
+ * @param src Pointer to the value being concatenated to the destination string.
+ * @param size Size of the destination buffer
+ */
+#define append_str(dest, src, size) strncat(dest, src, (size - strlen_nullsafe(dest)))
+
+
+/**
* strlen() wrapper. Returns the length of a string
*
* @param str Input string
diff --git a/database/sqlite/sqlite.c b/database/sqlite/sqlite.c
index 71bd04a..263ef97 100644
--- a/database/sqlite/sqlite.c
+++ b/database/sqlite/sqlite.c
@@ -345,17 +345,6 @@ char *_build_value_string(eDBfieldMap *ptr) {
/**
- * Wrapper macro, which appends a string to a destination string without exceeding the size
- * of the destination buffer.
- *
- * @param dest Pointer to the destination buffer
- * @param src Pointer to the value being concatenated to the destination string.
- * @param size Size of the destination buffer
- */
-#define append_str(dest, src, size) strncat(dest, src, (size - strlen_nullsafe(dest)))
-
-
-/**
* Internal function. Builds up a part of an SQL query, depending on the buildType. The values
* are taken from a pointer to an eDBfieldMap keeping the values
*