projects
/
ppastats.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7dfd82
)
code style
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 7 May 2012 10:49:26 +0000
(10:49 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Mon, 7 May 2012 10:49:26 +0000
(10:49 +0000)
src/html.c
patch
|
blob
|
history
diff --git
a/src/html.c
b/src/html.c
index
c5a0a2d
..
d969424
100644
(file)
--- a/
src/html.c
+++ b/
src/html.c
@@
-143,10
+143,13
@@
src=\"js/excanvas.js\"></script><![endif]-->\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, "/");