goat3d

diff converters/ass2goat/src/main.c @ 56:ca549434dc95

fixed a crashing bug in anm_destroy_node introduced when I added the multiple animations per node
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Jan 2014 02:50:54 +0200
parents af1310ed212b
children 76d0f55f9d5f
line diff
     1.1 --- a/converters/ass2goat/src/main.c	Sun Jan 19 14:56:44 2014 +0200
     1.2 +++ b/converters/ass2goat/src/main.c	Thu Jan 23 02:50:54 2014 +0200
     1.3 @@ -288,7 +288,7 @@
     1.4  
     1.5  	lastdot = strrchr(fname, '.');
     1.6  
     1.7 -	fname_end = lastdot ? lastdot + 1 : fname + strlen(fname);
     1.8 +	fname_end = lastdot ? lastdot : fname + strlen(fname);
     1.9  	namesz = fname_end - fname;
    1.10  	reqsz = namesz + strlen(suffix) + 2;	/* plus 1 for the dot */
    1.11