- Timestamp:
- Dec 12, 2018, 3:27:57 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
- Children:
- 7e93013
- Parents:
- 4b9481f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/sink_vorbis.c
r4b9481f9 rbe63940 63 63 s->path = AUBIO_ARRAY(char_t, strnlen(uri, PATH_MAX) + 1); 64 64 strncpy(s->path, uri, strnlen(uri, PATH_MAX) + 1); 65 s->path[ PATH_MAX - 1] = '\0';65 s->path[strnlen(uri, PATH_MAX)] = '\0'; 66 66 67 67 s->channels = 0; … … 93 93 vorbis_info_clear(&s->vi); 94 94 95 if (s->path) AUBIO_FREE(s->path); 95 96 AUBIO_FREE(s); 96 97 }
Note: See TracChangeset
for help on using the changeset viewer.