1.1 --- a/player-mplayer.c Mon Aug 17 20:55:55 2009 +0800
1.2 +++ b/player-mplayer.c Mon Aug 17 20:56:48 2009 +0800
1.3 @@ -181,8 +181,7 @@
1.4 modified=global=false;
1.5 free(resfile); resfile=0;
1.6 delete resobj; resobj=new cFileObj(file);
1.7 - char *s;
1.8 - asprintf(&s,file->Subdir() ? "%s/%s":"%s",file->Source()->BaseDir(),file->Subdir());
1.9 + char *s=aprintf(file->Subdir() ? "%s/%s":"%s",file->Source()->BaseDir(),file->Subdir());
1.10 if(MPlayerSetup.ResumeMode==1 ||
1.11 (access(s,W_OK) && (errno==EACCES || errno==EROFS))) {
1.12 global=true;
1.13 @@ -581,7 +580,7 @@
1.14 va_list ap;
1.15 va_start(ap,format);
1.16 char *buff=0;
1.17 - vasprintf(&buff,format,ap);
1.18 + if(vasprintf(&buff,format,ap)<0);
1.19 Lock();
1.20 // check for writeable pipe i.e. prevent broken pipe signal
1.21 if(!brokenPipe) {