diff options
Diffstat (limited to 'onlineupdate')
-rw-r--r-- | onlineupdate/source/libmar/sign/nss_secutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/onlineupdate/source/libmar/sign/nss_secutil.c b/onlineupdate/source/libmar/sign/nss_secutil.c index ac8954ceb953..01aa5734e0a2 100644 --- a/onlineupdate/source/libmar/sign/nss_secutil.c +++ b/onlineupdate/source/libmar/sign/nss_secutil.c @@ -158,7 +158,7 @@ SECU_FilePasswd(PK11SlotInfo *slot, PRBool retry, void *arg) int phraseLen; /* handle the Windows EOL case */ - while (phrases[i] != '\r' && phrases[i] != '\n' && i < nb) i++; + while (i < nb && phrases[i] != '\r' && phrases[i] != '\n') i++; /* terminate passphrase */ phrases[i++] = '\0'; /* clean up any EOL before the start of the next passphrase */ |