diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dump.c | 4 | ||||
| -rw-r--r-- | src/load.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/dump.c b/src/dump.c index 8eb64c9b2..c2b987bc8 100644 --- a/src/dump.c +++ b/src/dump.c @@ -304,7 +304,7 @@ mrb_write_section_lineno_header(mrb_state *mrb, uint32_t section_size, uint16_t struct rite_section_lineno_header *header = (struct rite_section_lineno_header*)bin; // TODO - memcpy(header->section_identify, RITE_SECTION_LIENO_IDENTIFIER, sizeof(header->section_identify)); + memcpy(header->section_identify, RITE_SECTION_LINENO_IDENTIFIER, sizeof(header->section_identify)); uint32_to_bin(section_size, header->section_size); uint16_to_bin(nirep, header->nirep); uint16_to_bin(sirep, header->sirep); @@ -396,7 +396,7 @@ write_rite_binary_header(mrb_state *mrb, size_t binary_size, uint8_t* bin) uint16_t crc; size_t offset; - memcpy(header->binary_identify, RITE_BINARY_IDENFIFIER, sizeof(header->binary_identify)); + memcpy(header->binary_identify, RITE_BINARY_IDENTIFIER, sizeof(header->binary_identify)); memcpy(header->binary_version, RITE_BINARY_FORMAT_VER, sizeof(header->binary_version)); memcpy(header->compiler_name, RITE_COMPILER_NAME, sizeof(header->compiler_name)); memcpy(header->compiler_version, RITE_COMPILER_VERSION, sizeof(header->compiler_version)); diff --git a/src/load.c b/src/load.c index 9278f3191..b3f13a8ef 100644 --- a/src/load.c +++ b/src/load.c @@ -309,7 +309,7 @@ read_rite_binary_header(const uint8_t *bin, size_t *bin_size, uint16_t *crc) { const struct rite_binary_header *header = (const struct rite_binary_header *)bin; - if (memcmp(header->binary_identify, RITE_BINARY_IDENFIFIER, sizeof(header->binary_identify)) != 0) { + if (memcmp(header->binary_identify, RITE_BINARY_IDENTIFIER, sizeof(header->binary_identify)) != 0) { return MRB_DUMP_INVALID_FILE_HEADER; } @@ -362,7 +362,7 @@ mrb_read_irep(mrb_state *mrb, const uint8_t *bin) } total_nirep += result; } - else if (memcmp(section_header->section_identify, RITE_SECTION_LIENO_IDENTIFIER, sizeof(section_header->section_identify)) == 0) { + else if (memcmp(section_header->section_identify, RITE_SECTION_LINENO_IDENTIFIER, sizeof(section_header->section_identify)) == 0) { result = read_rite_section_lineno(mrb, bin, sirep); if (result < MRB_DUMP_OK) { return result; @@ -601,7 +601,7 @@ mrb_read_irep_file(mrb_state *mrb, FILE* fp) } total_nirep += result; } - else if (memcmp(section_header.section_identify, RITE_SECTION_LIENO_IDENTIFIER, sizeof(section_header.section_identify)) == 0) { + else if (memcmp(section_header.section_identify, RITE_SECTION_LINENO_IDENTIFIER, sizeof(section_header.section_identify)) == 0) { fseek(fp, fpos, SEEK_SET); result = read_rite_section_lineno_file(mrb, fp, sirep); if (result < MRB_DUMP_OK) { |
