Code

Added __attribute__((format(printf, ...))) where appropriate.
[sysdb.git] / src / tools / sysdb / input.c
index 21a2e5d3112fe2b2da323ea2af782e8b95cb2626..55a074cd3863f8a39fa947a7f96cba2d8822488f 100644 (file)
@@ -129,8 +129,7 @@ handle_input(char *line)
                return;
        }
 
-       sdb_strbuf_append(sysdb_input->input, line);
-       sdb_strbuf_append(sysdb_input->input, "\n");
+       sdb_strbuf_append(sysdb_input->input, "%s\n", line);
        free(line);
 
        if (sysdb_input->interactive)