translate comments

I didn't notice that forgot
This commit is contained in:
2026-02-22 09:11:57 +00:00
parent 23c75c33b1
commit 5525fd2a86

View File

@@ -131,12 +131,12 @@ void fill_buffer(void* ptr, size_t size, unsigned char pattern)
bool check_buffer(void* ptr, size_t size, unsigned char pattern)
{
if (!ptr) {
return false; // Нельзя проверить NULL
return false;
}
unsigned char* byte_ptr = (unsigned char*)ptr;
for (size_t i = 0; i < size; ++i) {
if (byte_ptr[i] != pattern) {
fprintf(stderr, "Ошибка: Байт %zu не соответствует паттерну. Ожидалось %02X, получено %02X\n",
fprintf(stderr, "Error: Byte %zu does not match pattern. Expected %02X, got %02X\n",
i, pattern, byte_ptr[i]);
return false;
}