Fixed login text-entry bug, fixes to KMS (graphics is still buggy)
[tpg/acess2.git] / Usermode / Applications / login_src / main.c
index 2866dbd..cf58c1b 100644 (file)
@@ -87,6 +87,7 @@ char *GetUsername()
        while( (ch = fgetc(stdin)) != -1 && ch != '\n' )
        {
                if(ch == '\b') {
+                       if( pos == 0 )  continue;
                        pos --;
                        ret[pos] = '\0';
                }
@@ -122,6 +123,7 @@ char *GetPassword()
        while( (ch = fgetc(stdin)) != -1 && ch != '\n' )
        {
                if(ch == '\b') {
+                       if( pos == 0 )  continue;
                        pos --;
                        ret[pos] = '\0';
                }

UCC git Repository :: git.ucc.asn.au