diff options
Diffstat (limited to 'crypto/buffer')
-rw-r--r-- | crypto/buffer/buf_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/buffer/buf_str.c b/crypto/buffer/buf_str.c index 35e4a2e789..b4ff71ed5a 100644 --- a/crypto/buffer/buf_str.c +++ b/crypto/buffer/buf_str.c @@ -66,7 +66,7 @@ size_t BUF_strnlen(const char *str, size_t maxlen) { const char *p; - for (p = str; *p != '\0' && maxlen-- != 0; ++p) + for (p = str; maxlen-- != 0 && *p != '\0'; ++p) ; return p - str; |