Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 10, 2024
1 parent 5772cf0 commit df44f40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/m_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ char *M_StringReplaceFirst(char *haystack, const char *needle, const char *repla
}

#if !defined(strrstr)
static char *strrstr(const char *haystack, const char *needle)
char *strrstr(const char *haystack, const char *needle)
{
char *r = NULL;

Expand Down Expand Up @@ -668,7 +668,7 @@ void M_snprintf(char *buf, int buf_len, const char *s, ...)
}

#if !defined(strndup)
static char *strndup(const char *s, size_t n)
char *strndup(const char *s, size_t n)
{
const size_t len = strnlen(s, n);
char *new = malloc(len + 1);
Expand Down

0 comments on commit df44f40

Please sign in to comment.