Skip to content

Commit

Permalink
libhfuzz: fix HF_strlcpy so it matches the strlcpy spec (ret value)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Nov 24, 2023
1 parent 1912660 commit 07d6f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libhfuzz/memorycmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static inline size_t HF_strlcpy(char* dest, const char* src, size_t sz, uintptr_
}

dest[len] = '\0';
return len;
return slen;
}

static inline size_t HF_strlcat(char* dest, const char* src, size_t sz, uintptr_t addr) {
Expand Down

0 comments on commit 07d6f8a

Please sign in to comment.