Skip to content

Commit

Permalink
Fixed warning of too few arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisamiga committed Oct 22, 2023
1 parent 23fc341 commit 229f2c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ char *string_to_lower(const char *text, size_t len)
return result;
}

size_t safeStrlen(const char *str, size_t max_len)
size_t safeStrlen(const char *str)
{
size_t len = 0;
while (len < max_len && str[len] != '\0') {
while (str[len] != '\0') {
len++;
}
return len;
Expand Down
2 changes: 1 addition & 1 deletion src/funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ char getLastCharSafely(const char*);
char* getLastTwoChars(const char*);
size_t strlcpy(char *dest, const char *source, size_t size);
char *string_to_lower(const char *, size_t);
size_t safeStrlen(const char *, size_t);
size_t safeStrlen(const char *str);
#endif

0 comments on commit 229f2c6

Please sign in to comment.