summaryrefslogtreecommitdiff
path: root/src/sss_client
diff options
context:
space:
mode:
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/common.c b/src/sss_client/common.c
index 6639ae15..d9908614 100644
--- a/src/sss_client/common.c
+++ b/src/sss_client/common.c
@@ -984,7 +984,7 @@ errno_t sss_strnlen(const char *str, size_t maxlen, size_t *len)
*len = 0;
while (*len < maxlen) {
if (str[*len] == '\0') break;
- len++;
+ (*len)++;
}
#endif