Add missing fprintf format
authorDavid Goulet <david.goulet@polymtl.ca>
Fri, 22 Jul 2011 20:00:26 +0000 (16:00 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Fri, 22 Jul 2011 20:00:26 +0000 (16:00 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
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.027114 seconds and 4 git commands to generate.