Skip to content

Commit

Permalink
Fix MSVC buffer overflow (fixes #52)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong authored Jul 19, 2017
1 parent a4b0c0a commit 47d5a79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinydir.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2013-2016, tinydir authors:
Copyright (c) 2013-2017, tinydir authors:
- Cong Xu
- Lautis Sun
- Baudouin Feildel
Expand Down Expand Up @@ -628,7 +628,7 @@ int tinydir_file_open(tinydir_file *file, const _tinydir_char_t *path)
_tinydir_char_t *dir_name;
_tinydir_char_t *base_name;
#if (defined _MSC_VER || defined __MINGW32__)
_tinydir_char_t drive_buf[_TINYDIR_DRIVE_MAX];
_tinydir_char_t drive_buf[_TINYDIR_PATH_MAX];
_tinydir_char_t ext_buf[_TINYDIR_FILENAME_MAX];
#endif

Expand Down

0 comments on commit 47d5a79

Please sign in to comment.