aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index e10e8b23..18e45a04 100644
--- a/parse.c
+++ b/parse.c
@@ -215,3 +215,29 @@ INIT_F(parse_ctx, char* filename) {
strcpy(this->filename, filename);
return 0;
}
+
+int push_strbuf(strbuf* target, strbuf* src) {
+#if 0
+ if (src->ptr + 1 > keylen) {
+ keylen = str->ptr + 1;
+ /*
+ * Allow for key's longer than 100 octets. It
+ * currently is of no use, since key's can't be
+ * folded.
+ * TODO check if everything should be unfolded at 75
+ * octets, or if that is only for values.
+ *
+ * TODO earlier there was a bug here. Test if that is
+ * fixed and reenable this line.
+ */
+ // strbuf_realloc(&cline.key, keylen);
+ }
+#endif
+
+ strbuf_copy(target, src);
+ strbuf_cap(target);
+ strbuf_soft_reset(src);
+
+ // continue;
+ return 0;
+}