sprintf_s unix compatible fix
This commit is contained in:
parent
09f87160bb
commit
63f5977aae
8
obj.c
8
obj.c
@ -2451,18 +2451,18 @@ void obj_write(const obj *O, const char *obj, const char *mtl, const char *outPa
|
|||||||
|
|
||||||
if (obj) {
|
if (obj) {
|
||||||
if (outPath != NULL)
|
if (outPath != NULL)
|
||||||
sprintf_s(objPath, MAXSTR, EXPORT_FORMAT, outPath, obj);
|
snprintf(objPath, MAXSTR, EXPORT_FORMAT, outPath, obj);
|
||||||
else
|
else
|
||||||
sprintf_s(objPath, MAXSTR, "%s", obj);
|
snprintf(objPath, MAXSTR, "%s", obj);
|
||||||
|
|
||||||
obj_write_obj(O, objPath, mtl, prec);
|
obj_write_obj(O, objPath, mtl, prec);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mtl) {
|
if (mtl) {
|
||||||
if (outPath != NULL)
|
if (outPath != NULL)
|
||||||
sprintf_s(mtlPath, MAXSTR, EXPORT_FORMAT, outPath, mtl);
|
snprintf(mtlPath, MAXSTR, EXPORT_FORMAT, outPath, mtl);
|
||||||
else
|
else
|
||||||
sprintf_s(mtlPath, MAXSTR, "%s", mtl);
|
snprintf(mtlPath, MAXSTR, "%s", mtl);
|
||||||
|
|
||||||
obj_write_mtl(O, mtlPath);
|
obj_write_mtl(O, mtlPath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user