From c32ae4d8a044e8444d0c132e5ea6e3b5b9230198 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 7 May 2012 10:49:26 +0000 Subject: [PATCH] code style --- src/html.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/html.c b/src/html.c index c5a0a2d..d969424 100644 --- a/src/html.c +++ b/src/html.c @@ -143,10 +143,13 @@ src=\"js/excanvas.js\">\n\ static char *path_new(const char *dir, const char *file, const char *suffixe) { - char *path = malloc(strlen(dir)+1+ - strlen(file)+ - (suffixe ? strlen(suffixe) : 0) + - 1); + char *path; + + /* [dir]/[file][suffixe] */ + path = malloc(strlen(dir)+1+ + strlen(file)+ + (suffixe ? strlen(suffixe) : 0) + + 1); strcpy(path, dir); strcat(path, "/"); -- 2.7.4