Closed a pitfall with reading from '-' and no tsize= or tao_to_sao_tsize=

This commit is contained in:
Thomas Schmitt 2006-08-28 21:30:44 +00:00
parent 0b56b9d915
commit dcb3b3784f

View File

@ -3923,12 +3923,10 @@ track_too_large:;
printf( printf(
"cdrskin: NOTE : augmenting non-tao write mode by tao_to_sao_tsize\n"); "cdrskin: NOTE : augmenting non-tao write mode by tao_to_sao_tsize\n");
printf("cdrskin: NOTE : fixed size : %.f\n",skin->fixed_size); printf("cdrskin: NOTE : fixed size : %.f\n",skin->fixed_size);
/* >>> upcoming problem fix
} else if(skin->fixed_size<=0) { } else if(skin->fixed_size<=0) {
fprintf(stderr, fprintf(stderr,
"cdrskin: FATAL : \"-\" (stdin) needs a fixed tsize= or tao_to_sao_tsize=\n"); "cdrskin: FATAL : \"-\" (stdin) needs a fixed tsize= or tao_to_sao_tsize=\n");
return(0); return(0);
*/
} }
} else if(skin->preskin->allow_fd_source==0 && } else if(skin->preskin->allow_fd_source==0 &&
argv[i][0]=='#' && (argv[i][1]>='0' && argv[i][1]<='9')) { argv[i][0]=='#' && (argv[i][1]>='0' && argv[i][1]<='9')) {