1
0
Fork 0
forked from len0rd/rockbox

scanf sucks :/

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6377 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michiel Van Der Kolk 2005-04-28 17:07:44 +00:00
parent a43f90f563
commit d98b6aec01

View file

@ -29,6 +29,7 @@ main() {
printf("Output filename? "); printf("Output filename? ");
fflush(stdout); fflush(stdout);
fgets(buf,254,stdin); fgets(buf,254,stdin);
buf[strlen(buf)-1]=0;
fp=fopen(buf,"w"); fp=fopen(buf,"w");
if(fp<0) { if(fp<0) {
printf("Error opening outputfile.\n"); printf("Error opening outputfile.\n");