Skip to content

Commit e8a4877

Browse files
committed
Update strchr return value to fit glibc 2.43
1 parent 7d8afcf commit e8a4877

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example_callbacks/static_compressed_inmemory_website/static_compressed_inmemory_website_callback.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static const char * get_filename_ext(const char *path) {
128128
const char *dot = strrchr(path, '.');
129129
if(!dot || dot == path) return "*";
130130
if (strchr(dot, '?') != NULL) {
131-
*strchr(dot, '?') = '\0';
131+
*((char *)strchr(dot, '?')) = '\0';
132132
}
133133
return dot;
134134
}

0 commit comments

Comments
 (0)