From 45584a1c39c699e2bc68638fe2402e590631e3a3 Mon Sep 17 00:00:00 2001 From: jvech Date: Mon, 31 Oct 2022 10:35:24 -0500 Subject: fix: stdin file reading bug fixed Because is impossible to look for a mtl file it will discard it and prints a warning message --- src/obj.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/obj.h') diff --git a/src/obj.h b/src/obj.h index 44790a2..10df760 100644 --- a/src/obj.h +++ b/src/obj.h @@ -19,7 +19,7 @@ # ifndef __OBJ__ #define __OBJ__ -#define OBJ_LINE_MAX_SIZE 1024 +#define OBJ_LINE_MAX 1024 #define OBJ_MAX_WORD 512 typedef struct { @@ -34,7 +34,7 @@ typedef struct { } Texture; typedef struct { - char name[OBJ_LINE_MAX_SIZE]; + char name[OBJ_LINE_MAX]; float ka[3], kd[3], ks[3]; unsigned int illum; float ns; -- cgit v1.2.3-70-g09d2