summaryrefslogtreecommitdiff
path: root/libs/raylib/src/external/tinyobj_loader_c.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/raylib/src/external/tinyobj_loader_c.h')
-rw-r--r--libs/raylib/src/external/tinyobj_loader_c.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/raylib/src/external/tinyobj_loader_c.h b/libs/raylib/src/external/tinyobj_loader_c.h
index 7ef55ff..6bd63fc 100644
--- a/libs/raylib/src/external/tinyobj_loader_c.h
+++ b/libs/raylib/src/external/tinyobj_loader_c.h
@@ -748,7 +748,7 @@ static int tinyobj_parse_and_index_mtl_file(tinyobj_material_t **materials_out,
fp = fopen(filename, "r");
if (!fp) {
- //fprintf(stderr, "TINYOBJ: Error reading file '%s': %s (%d)\n", filename, strerror(errno), errno); // @raysan5: commented
+ fprintf(stderr, "TINYOBJ: Error reading file '%s': %s (%d)\n", filename, strerror(errno), errno);
return TINYOBJ_ERROR_FILE_OPERATION;
}
@@ -1321,7 +1321,7 @@ int tinyobj_parse_obj(tinyobj_attrib_t *attrib, tinyobj_shape_t **shapes,
if (ret != TINYOBJ_SUCCESS) {
/* warning. */
- //fprintf(stderr, "TINYOBJ: Failed to parse material file '%s': %d\n", filename, ret); // @raysan5: commented
+ fprintf(stderr, "TINYOBJ: Failed to parse material file '%s': %d\n", filename, ret);
}
TINYOBJ_FREE(filename);
@@ -1377,7 +1377,7 @@ int tinyobj_parse_obj(tinyobj_attrib_t *attrib, tinyobj_shape_t **shapes,
/* Create a null terminated string */
char* material_name_null_term = (char*) TINYOBJ_MALLOC(commands[i].material_name_len + 1);
memcpy((void*) material_name_null_term, (const void*) commands[i].material_name, commands[i].material_name_len);
- material_name_null_term[commands[i].material_name_len - 1] = 0;
+ material_name_null_term[commands[i].material_name_len] = 0;
if (hash_table_exists(material_name_null_term, &material_table))
material_id = (int)hash_table_get(material_name_null_term, &material_table);