projects
/
ppastats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code style
[ppastats.git]
/
src
/
html.c
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)
{
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, "/");
strcpy(path, dir);
strcat(path, "/");