diff options
Diffstat (limited to 'src/plugins/Youtube.cpp')
-rw-r--r-- | src/plugins/Youtube.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 7e5bd7b..f81d934 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -288,7 +288,7 @@ R"END( errno = 0; char *endptr; - content_length = strtol(content_length_str.c_str(), &endptr, 10); + content_length = strtoll(content_length_str.c_str(), &endptr, 10); if(endptr == content_length_str.c_str() || errno != 0) return ""; @@ -488,7 +488,7 @@ R"END( if(!upcoming_event_text) return nullptr; - time_t start_time = strtol(start_time_json.asCString(), nullptr, 10); + time_t start_time = strtoll(start_time_json.asCString(), nullptr, 10); struct tm message_tm; localtime_r(&start_time, &message_tm); char time_str[128] = {0}; |