summaryrefslogtreecommitdiff
path: root/debian/patches/03-json-nul-terminator.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/03-json-nul-terminator.patch')
-rw-r--r--debian/patches/03-json-nul-terminator.patch11
1 files changed, 0 insertions, 11 deletions
diff --git a/debian/patches/03-json-nul-terminator.patch b/debian/patches/03-json-nul-terminator.patch
deleted file mode 100644
index 783a555..0000000
--- a/debian/patches/03-json-nul-terminator.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/template.c
-+++ b/template.c
-@@ -361,7 +361,7 @@ tplToJSON(struct template *pTpl, msg_t *pMsg, struct json_object **pjson, struct
- pTpe->data.field.propName, &propLen,
- &bMustBeFreed, ttNow);
- if(pTpe->data.field.options.bMandatory || propLen > 0) {
-- jsonf = json_object_new_string_len((char*)pVal, propLen);
-+ jsonf = json_object_new_string_len((char*)pVal, propLen+1);
- json_object_object_add(json, (char*)pTpe->fieldName, jsonf);
- }
- if(bMustBeFreed) { /* json-c makes its own private copy! */