mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-29 06:04:25 +01:00
Improve base64 decode and utf8 handling
This commit is contained in:
5
src/index.html
vendored
5
src/index.html
vendored
File diff suppressed because one or more lines are too long
@@ -37,7 +37,7 @@ uppercase(char *str) {
|
||||
}
|
||||
|
||||
bool
|
||||
endswith(const char * str, const char * suffix) {
|
||||
endswith(const char *str, const char *suffix) {
|
||||
size_t str_len = strlen(str);
|
||||
size_t suffix_len = strlen(suffix);
|
||||
return str_len > suffix_len && !strcmp(str + (str_len - suffix_len), suffix);
|
||||
|
||||
@@ -15,7 +15,7 @@ uppercase(char *str);
|
||||
|
||||
// Check whether str ends with suffix
|
||||
bool
|
||||
endswith(const char * str, const char * suffix);
|
||||
endswith(const char *str, const char *suffix);
|
||||
|
||||
// Get human readable signal string
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user