summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1e89664)
response to the "Overwrite ? [y/N]" question.
Fix the behaviour when the question is asked more than one time.
Originally committed as revision 18036 to svn://svn.ffmpeg.org/ffmpeg/trunk
fprintf(stderr, "Not overwriting - exiting\n");
av_exit(1);
}
fprintf(stderr, "Not overwriting - exiting\n");
av_exit(1);
}
+ while (c != '\n' && c != EOF)
+ c = getchar();
}
else {
fprintf(stderr,"File '%s' already exists. Exiting.\n", filename);
}
else {
fprintf(stderr,"File '%s' already exists. Exiting.\n", filename);