Menu

#2 Problem with Specifying Non-Default File Extensions

Alpha_0.5
open
Interface (2)
7
2003-05-09
2003-05-09
No

Problem:
Attempting to enter a non-default filename extension is
currently not possible because a linefeed in the "get
buffer" for console input ends the getline(istream, string,
char) call necessary to read the extension in.

Testing Methodology:
Start the utility in interactive mode. Attempting to enter
an extension other than the default ".jpg" will fail due to
this bug.

Repair Necessary:
Clear the linefeed from the "get buffer" before calling
getline(istream, string, char) in function GetInput.

I reported this so people would know I am going to fix it
soon.

Discussion


Log in to post a comment.