Skip to content

Commit

Permalink
Fix strlcpy in rest:
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 25, 2014
1 parent 0ec4950 commit 058ba66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_rest/rlm_rest.c
Expand Up @@ -231,7 +231,7 @@ static ssize_t rest_xlat(void *instance, REQUEST *request,
}
if (len > 0) {
outlen = len;
strlcpy(out, body, len);
strlcpy(out, body, len + 1); /* strlcpy takes the size of the buffer */
}

end:
Expand Down

0 comments on commit 058ba66

Please sign in to comment.