Add missing fprintf format
[lttng-tools.git] / lttng / commands / add_context.c
index a622622f1e0ef736721db9fec1c61d70fb277c55..38d3cc1dc1425050c0f4740482f6a6157e180418 100644 (file)
@@ -267,14 +267,14 @@ static void print_ctx_type(FILE *ofp)
        int indent_len = strlen(indent);
        int len, i = 0;
 
-       fprintf(ofp, indent);
+       fprintf(ofp, "%s", indent);
        len = indent_len;
        while (ctx_opts[i].symbol != NULL) {
                if (len > indent_len) {
                        if (len + strlen(ctx_opts[i].symbol) + 2
                                        >= PRINT_LINE_LEN) {
                                fprintf(ofp, ",\n");
-                               fprintf(ofp, indent);
+                               fprintf(ofp, "%s", indent);
                                len = indent_len;
                        } else {
                                len += fprintf(ofp, ", ");
This page took 0.02445 seconds and 5 git commands to generate.