diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-20 19:42:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-20 19:42:17 -0500 |
| commit | 98a0b6ceed0f8d432cae61559884613df539a0a1 (patch) | |
| tree | 10583ee7130379feef0cd440266142fb6eede906 /dev/lib/net | |
| parent | 3bc2fca2c9beff13586b8bf3089ce439acb09de1 (diff) | |
| parent | 682d03f0b8e22168e2ccd2c4a35efae230d40eb0 (diff) | |
Merge pull request #13 from amlel-el-mahrouss/developv1.0.47
release: OCL 'Cork'
Diffstat (limited to 'dev/lib/net')
| -rw-r--r-- | dev/lib/net/modem.hpp | 2 | ||||
| -rw-r--r-- | dev/lib/net/url.hpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/dev/lib/net/modem.hpp b/dev/lib/net/modem.hpp index 5bcf3fd..a498f2e 100644 --- a/dev/lib/net/modem.hpp +++ b/dev/lib/net/modem.hpp @@ -2,7 +2,7 @@ * File: net/modem.hpp * Purpose: Modem concept in modern C++ * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license. + * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. */ #ifndef _OCL_NET_NETWORK_HPP diff --git a/dev/lib/net/url.hpp b/dev/lib/net/url.hpp index e4eca2a..4bbc271 100644 --- a/dev/lib/net/url.hpp +++ b/dev/lib/net/url.hpp @@ -2,7 +2,7 @@ * File: net/url.hpp * Purpose: URL container in modern C++ * Author: Amlal El Mahrouss (amlal@nekernel.org) - * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license. + * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. */ #pragma once @@ -41,17 +41,17 @@ namespace ocl::net if (protocol.starts_with("https://")) { m_protocol_ = url_protocol::https; - this->operator/=(protocol.substr(strlen("https://"))); + this->operator/=(protocol.substr(std::size("https://"))); } else if (protocol.starts_with("http://")) { m_protocol_ = url_protocol::http; - this->operator/=(protocol.substr(strlen("http://"))); + this->operator/=(protocol.substr(std::size("http://"))); } else if (protocol.starts_with("mailto:")) { m_protocol_ = url_protocol::mailto; - this->operator/=(protocol.substr(strlen("mailto:"))); + this->operator/=(protocol.substr(std::size("mailto:"))); } } |
