Skip to content

Commit

Permalink
just in case the filename has no extension
Browse files Browse the repository at this point in the history
  • Loading branch information
bluesmoon committed Apr 24, 2011
1 parent 5827888 commit a0e1c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pngtocss.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ static void print_css_gradient(const char *fname, gradient g)
return;
}

classname = (char *)malloc(strlen(fname));
classname = (char *)calloc(strlen(fname)+1, 1);
c=strrchr(fname, '/');
if(c)
c++;
Expand Down

0 comments on commit a0e1c92

Please sign in to comment.