Changeset b8cedb6
- 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
- Location:
- python/ext
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-sink.c
r140b460 rb8cedb6 81 81 } 82 82 83 self->uri = "none";83 self->uri = NULL; 84 84 if (uri != NULL) { 85 self->uri = uri; 85 self->uri = (char_t *)malloc(sizeof(char_t) * (strnlen(uri, PATH_MAX) + 1)); 86 strncpy(self->uri, uri, strnlen(uri, PATH_MAX) + 1); 86 87 } 87 88 -
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.