Ignore:
Timestamp:
Feb 27, 2017, 10:26:01 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/applefworks, fix/ffmpeg5, master, sampler
Children:
4f89154
Parents:
140b460
Message:

python/ext/py-source.c: copy string uri

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-sink.c

    r140b460 rb8cedb6  
    8181  }
    8282
    83   self->uri = "none";
     83  self->uri = NULL;
    8484  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);
    8687  }
    8788
Note: See TracChangeset for help on using the changeset viewer.