Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #60 from nbs-system/fix_off_by_one
Browse files Browse the repository at this point in the history
Fix a silly and useless off-by-one
  • Loading branch information
buixor committed Oct 31, 2017
2 parents 9719aaa + bd88c1b commit 6b50566
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sp_unserialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ PHP_FUNCTION(sp_serialize) {
memcpy(ZSTR_VAL(res), Z_STRVAL_P(return_value), Z_STRLEN_P(return_value));
memcpy(ZSTR_VAL(res) + Z_STRLEN_P(return_value), Z_STRVAL(hmac),
Z_STRLEN(hmac));
ZSTR_VAL(res)[len] = '\0';

/* Append the computed HMAC to the serialized data. */
return_value->value.str = res;
Expand Down

0 comments on commit 6b50566

Please sign in to comment.