summaryrefslogtreecommitdiffstats
path: root/collection/collection_tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'collection/collection_tools.c')
-rw-r--r--collection/collection_tools.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/collection/collection_tools.c b/collection/collection_tools.c
index 54d96c3..7e60285 100644
--- a/collection/collection_tools.c
+++ b/collection/collection_tools.c
@@ -465,6 +465,11 @@ int col_serialize(const char *property_in,
(const char *)(data), '"');
break;
+ /* Here and below it is safe to use sprintf() becuase we
+ * already pre-calculated the length and allocated buffer
+ * of the right size.
+ */
+
case COL_TYPE_BINARY:
buf_data->buffer[buf_data->length] = '\'';
for (i = 0; i < length; i++)