aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_getpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_getpass.c b/src/tool_getpass.c
index 0ac7dcbe0..4c8dcb9f1 100644
--- a/src/tool_getpass.c
+++ b/src/tool_getpass.c
@@ -117,7 +117,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen)
if(buffer[i] == '\b')
/* remove this letter and if this is not the first key, remove the
previous one as well */
- i = i - (i >= 1) ? 2 : 1;
+ i = i - (i >= 1 ? 2 : 1);
}
#ifndef __SYMBIAN32__
/* since echo is disabled, print a newline */