change from atoi to sprintf

linux does not support itoa 

svn path=/trunk/; revision=15320
This commit is contained in:
Magnus Olsen 2005-05-15 21:11:37 +00:00
parent 19ea176f6d
commit 52b95ec424

View file

@ -618,7 +618,7 @@ void parse_filename_into_dirrecord ( const char* filename, PDIR_RECORD d, BOOL d
if (filename_counter>255) error_exit ( "'%s' is a duplicate file name, aborting...", filename );
d->name_on_cd[8] = '~';
memset(&d->name_on_cd[9],0,5);
itoa(filename_counter, &d->name_on_cd[9],10);
sprintf(&d->name_on_cd[9],"%d",filename_counter);
filename_counter++;
}