X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_compile.c;h=87a6ad02e7376bb779dc661ee891b453a305b18f;hb=9d511cc5b12021b6c6c079fc5b08487fdf361a26;hp=7cee7795b7c8fef9cd532437e3d4977b6bce1fda;hpb=117cc6cdab716e87dc286fb1f32a62f820bc90be;p=ccan-lca-2011.git diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index 7cee779..87a6ad0 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -154,7 +154,7 @@ static char *add_func(char *others, const char *line) } return talloc_asprintf_append(others, "printf(\"%%p\", %.*s);\n", - (unsigned)(end - p + 1), p); + (unsigned)(end - p), p+1); } static void strip_leading_whitespace(char **lines)