Changeset b8cedb6 for python/ext/py-source.c
- Timestamp:
- Feb 27, 2017, 10:26:01 AM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
- Children:
- 4f89154
- Parents:
- 140b460
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-source.c
r140b460 rb8cedb6 101 101 } 102 102 103 self->uri = "none";103 self->uri = NULL; 104 104 if (uri != NULL) { 105 self->uri = uri; 105 self->uri = (char_t *)malloc(sizeof(char_t) * (strnlen(uri, PATH_MAX) + 1)); 106 strncpy(self->uri, uri, strnlen(uri, PATH_MAX) + 1); 106 107 } 107 108
Note: See TracChangeset
for help on using the changeset viewer.