"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/common.c" between
libtimidity-0.2.6.tar.gz and libtimidity-0.2.7.tar.gz

About: libTiMidity is a MIDI to WAVE converter library that uses Gravis Ultrasound-compatible patch files to generate digital audio data from General MIDI files.

common.c  (libtimidity-0.2.6):common.c  (libtimidity-0.2.7)
skipping to change at line 129 skipping to change at line 129
{ {
PathList *plp = (PathList *) timi_malloc(sizeof(PathList)); PathList *plp = (PathList *) timi_malloc(sizeof(PathList));
if (!plp) return -2; if (!plp) return -2;
plp->path = (char *) timi_malloc(l + 1); plp->path = (char *) timi_malloc(l + 1);
if (!plp->path) { if (!plp->path) {
timi_free (plp); timi_free (plp);
return -2; return -2;
} }
plp->next = pathlist; plp->next = pathlist;
pathlist = plp; pathlist = plp;
strncpy(plp->path, s, l); memcpy(plp->path, s, l);
plp->path[l] = 0; plp->path[l] = 0;
return 0; return 0;
} }
void timi_free_pathlist(void) void timi_free_pathlist(void)
{ {
PathList *plp = pathlist; PathList *plp = pathlist;
PathList *next; PathList *next;
while (plp) { while (plp) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)