summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'dev/lib/net')
-rw-r--r--dev/lib/net/modem.hpp2
-rw-r--r--dev/lib/net/url.hpp8
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:")));
}
}