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:
parent
a43f90f563
commit
d98b6aec01
1 changed files with 1 additions and 0 deletions
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue