Reacted on warning of cppcheck about libburn/sg-solaris.c

This commit is contained in:
Thomas Schmitt 2011-07-12 17:38:01 +00:00
parent f12ce229ae
commit 13895a6518
2 changed files with 1 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.07.12.155417"
#define Cdrskin_timestamP "2011.07.12.173727"

View File

@ -785,13 +785,11 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
#endif
char *testpath = NULL, *cpt;
long blocks;
off_t add_size = 0;
BURN_ALLOC_MEM(testpath, char, 4096);
testpath[0] = 0;
blocks = *bytes / 512;
if (stat(path, &stbuf) == -1) {
strcpy(testpath, path);
cpt = strrchr(testpath, '/');