summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-28 08:31:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-28 22:02:49 +0200
commitc08e3aca5a8f3869e47c42bded962292cffccce6 (patch)
tree523b0f09c0470f4b51b5c3e9b82b3a5a57db04cd /src
parent1658c567191c35beaddffafdb079abe33248037b (diff)
downloadsssd-c08e3aca5a8f3869e47c42bded962292cffccce6.tar.gz
sssd-c08e3aca5a8f3869e47c42bded962292cffccce6.tar.bz2
sssd-c08e3aca5a8f3869e47c42bded962292cffccce6.zip
CLIENT: Fix non gnu sss_strnlen implementation
last argument of function sss_strnlen "size_t *len" is output variable. We need to increment value of size_t being pointed to by pointer instead of incrementing pointer.
Diffstat (limited to 'src')
-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