summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibArchive
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-04-18 10:30:03 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-18 10:30:03 +0200
commit2b0c361d04b519b20bfb70a34c07de579a93fafd (patch)
treef2a4d12d02801fe5bd0abf1ac2c068b540d75a45 /Userland/Libraries/LibArchive
parentcebd3f740b6fd2fd0da30ed92310a968cf6df44a (diff)
downloadserenity-2b0c361d04b519b20bfb70a34c07de579a93fafd.zip
Everywhere: Fix a bunch of typos
Diffstat (limited to 'Userland/Libraries/LibArchive')
-rw-r--r--Userland/Libraries/LibArchive/Tar.h4
-rw-r--r--Userland/Libraries/LibArchive/TarStream.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibArchive/Tar.h b/Userland/Libraries/LibArchive/Tar.h
index 0c92d20e74..754b3967dc 100644
--- a/Userland/Libraries/LibArchive/Tar.h
+++ b/Userland/Libraries/LibArchive/Tar.h
@@ -85,8 +85,8 @@ public:
void set_timestamp(time_t timestamp) { VERIFY(String::formatted("{:o}", timestamp).copy_characters_to_buffer(m_timestamp, sizeof(m_timestamp))); }
void set_type_flag(TarFileType type) { m_type_flag = static_cast<char>(type); }
void set_link_name(const String& link_name) { VERIFY(link_name.copy_characters_to_buffer(m_link_name, sizeof(m_link_name))); }
- void set_magic(const char* magic) { memcpy(m_magic, magic, sizeof(m_magic)); } // magic doesnt necessarily include a null byte
- void set_version(const char* version) { memcpy(m_version, version, sizeof(m_version)); } // version doesnt necessarily include a null byte
+ void set_magic(const char* magic) { memcpy(m_magic, magic, sizeof(m_magic)); } // magic doesn't necessarily include a null byte
+ void set_version(const char* version) { memcpy(m_version, version, sizeof(m_version)); } // version doesn't necessarily include a null byte
void set_owner_name(const String& owner_name) { VERIFY(owner_name.copy_characters_to_buffer(m_owner_name, sizeof(m_owner_name))); }
void set_group_name(const String& group_name) { VERIFY(group_name.copy_characters_to_buffer(m_group_name, sizeof(m_group_name))); }
void set_major(int major) { VERIFY(String::formatted("{:o}", major).copy_characters_to_buffer(m_major, sizeof(m_major))); }
diff --git a/Userland/Libraries/LibArchive/TarStream.cpp b/Userland/Libraries/LibArchive/TarStream.cpp
index de40ebe406..719dedc63b 100644
--- a/Userland/Libraries/LibArchive/TarStream.cpp
+++ b/Userland/Libraries/LibArchive/TarStream.cpp
@@ -131,7 +131,7 @@ bool TarInputStream::valid() const
|| (header_magic == posix1_tar_magic && header_version == posix1_tar_version)))
return false;
- // POSIX.1-1988 tar does not have magic numbers, so we also neet to verify the header checksum.
+ // POSIX.1-1988 tar does not have magic numbers, so we also need to verify the header checksum.
return header().checksum() == header().expected_checksum();
}