SourceForge: mpc123/mpc123: changeset 7:f50dbd0d624d
Fixed another aged bug \o/
authorFernando Vezzosi <fv@linuxvar.it>
Fri Mar 21 21:57:37 2008 +0000 (21 months ago)
changeset 7f50dbd0d624d
parent 6 2cf665fae437
child 8 582f9f1c9eec
Fixed another aged bug \o/
Keywords:

* fixed another annoying bug: this used to change playlist item names
playlist.c
     1.1 --- a/playlist.c	Fri Mar 21 21:09:06 2008 +0000
     1.2 +++ b/playlist.c	Fri Mar 21 21:57:37 2008 +0000
     1.3 @@ -97,7 +97,7 @@
     1.4        debugf("element \"%s\" ", argv[i]);
     1.5        sl=strlen(argv[i]);
     1.6        pl->files[i]=(char*)malloc(sl+1);
     1.7 -      strncpy(pl->files[i], argv[i], sl);
     1.8 +      strncpy(pl->files[i], argv[i], sl+1);
     1.9        debugf("        \"%s\"", pl->files[i]);
    1.10      }
    1.11    }