mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
* Change iscanf() to fgets() to fix Issue #20 * Actually change it correctly * Fix new line being at the end on the input
This commit is contained in:
parent
daaa8910d5
commit
3a7b91a5fe
@ -562,7 +562,8 @@ string browseForFile (void) {
|
||||
|
||||
keyboardShow();
|
||||
printf("Rename to: \n");
|
||||
iscanf("%s", newName);
|
||||
fgets(newName, 256, stdin);
|
||||
newName[strlen(newName)-1] = 0;
|
||||
keyboardHide();
|
||||
consoleClear();
|
||||
|
||||
@ -623,7 +624,8 @@ string browseForFile (void) {
|
||||
|
||||
keyboardShow();
|
||||
printf("Name for new folder: \n");
|
||||
iscanf("%s", newName);
|
||||
fgets(newName, 256, stdin);
|
||||
newName[strlen(newName)-1] = 0;
|
||||
keyboardHide();
|
||||
consoleClear();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user