Skip to content

Commit

Permalink
Update core/utils.c
Browse files Browse the repository at this point in the history
Co-authored-by: Reto Schneider <[email protected]>
  • Loading branch information
LukasWoodtli and rettichschnidi authored Jan 8, 2025
1 parent 89c061d commit 94dc9c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,9 @@ size_t utils_strnlen(const char *str, size_t max_size) {
const char *pos = memchr(str, '\0', max_size);
if (pos == NULL) {
return max_size;
} else {
return pos - str;
}

return pos - str;
}

size_t utils_strncpy(char *dest, const size_t dest_size, const char *src, const size_t src_size) {
Expand Down

0 comments on commit 94dc9c9

Please sign in to comment.