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

1.1.4
Thomas Schmitt 12 years ago
parent f12ce229ae
commit 13895a6518
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 2
      libburn/sg-solaris.c

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

@ -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, '/');

Loading…
Cancel
Save