Skip to content
Snippets Groups Projects
Commit 51c95f25 authored by rswindell's avatar rswindell
Browse files

uinput clears string if K_EDIT mode bit isn't set.

parent 7dd1ef01
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,8 @@ int uinput(int mode, char left, char top, char *prompt, char *outstr,
char max, int kmode)
{
char str[256];
if(!(kmode&K_EDIT))
outstr[0]=0;
sprintf(str,"%.*s",sizeof(str)-1,outstr);
while(dialog_inputbox((char*)NULL, prompt, 9, max+4, outstr)==-2)
help();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment