diff options
author | fritsch <Peter.Fruehberger@gmail.com> | 2014-12-29 16:30:20 +0100 |
---|---|---|
committer | fritsch <Peter.Fruehberger@gmail.com> | 2014-12-29 16:31:52 +0100 |
commit | 7391ea68e8b592275443ec640f70e055af49c69e (patch) | |
tree | 1b09209ee5bf23d5c3167c66d95d073a399741bf | |
parent | 4e0ac557f912d11844f457b8faa00887328bd97e (diff) |
Revert "fixed: CID 719032 Copy into fixed size buffer"
This reverts commit f696216f4f14fc36c9653363bcbac277bde25c35. (sizeof misuse)
-rw-r--r-- | xbmc/filesystem/iso9660.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xbmc/filesystem/iso9660.cpp b/xbmc/filesystem/iso9660.cpp index 11e6818b7d..5ccb859f1e 100644 --- a/xbmc/filesystem/iso9660.cpp +++ b/xbmc/filesystem/iso9660.cpp @@ -722,12 +722,7 @@ HANDLE iso9660::OpenFile(const char *filename) while ( strpbrk( pointer, "\\/" ) ) pointer = strpbrk( pointer, "\\/" ) + 1; - if (sizeof(filename) > sizeof(work) -1) - CLog::Log(LOGWARNING, "iso9660::OpenFile supplied path length too large"); - - strncpy(work, filename, sizeof(work) - 1 ); - work[sizeof(work) - 1] = 0; - + strcpy(work, filename ); pointer2 = work; while ( strpbrk(pointer2 + 1, "\\" ) ) |