Skip to content

Commit 3f44c12

Browse files
initialize CElementFilm::outputFilePath so its always null terminated
1 parent 1e47628 commit 3f44c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/ext/MitsubaLoader/CElementFilm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class CElementFilm : public IElement
135135
};
136136

137137
_NBL_STATIC_INLINE_CONSTEXPR size_t MaxPathLen = 256;
138-
char outputFilePath[MaxPathLen+1];
138+
char outputFilePath[MaxPathLen+1] = {0}; // intialize properly
139139
};
140140

141141

0 commit comments

Comments
 (0)