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

Commit

Permalink
Fix a silly and useless off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Oct 30, 2017
1 parent 9a0400b commit bd88c1b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sp_unserialize.c
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 bd88c1b

Please sign in to comment.