Skip to content

Commit

Permalink
don't add TWO zeros.
Browse files Browse the repository at this point in the history
There's already one in the string
  • Loading branch information
alandekok committed Sep 20, 2017
1 parent 0eda34a commit e9097a3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/modules/rlm_eap/rlm_eap.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, REQUEST *re

memcpy(new, old, vp->vp_length);
new[vp->length] = '\0';
new[vp->length + 1] = '\0';
vp->vp_strvalue = new;

rad_const_free(old);
Expand Down

0 comments on commit e9097a3

Please sign in to comment.