More valgrinding and fixing a serious mem leak - Alex
[terminatorX.git] / src / tX_prelis.cc
index 1f68396314d30d601dd052cacbc53623cb32ad81..3927d1d2a7511eb052b93ee337df6734c08f2ded 100644 (file)
@@ -62,7 +62,7 @@ void prelis_start(char *name) {
        int useogg123=0;
        int res;
        char dev[PATH_MAX];
-       char ogg123_dev[PATH_MAX];
+       char ogg123_dev[PATH_MAX]="dev:";
        char nm[PATH_MAX];
        
        if (!globals.prelis) return;
@@ -76,7 +76,6 @@ void prelis_start(char *name) {
                {
                        ext++;
 #ifdef USE_OGG123_INPUT
-                       strcpy(ogg123_dev, "dev:");
                        if (!strncasecmp("ogg", ext, 2))
                        useogg123=1;
                        else