Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cxong/tinydir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLautis Sun <lautis0503@gmail.com>2016-07-19 04:47:51 +0300
committerGitHub <noreply@github.com>2016-07-19 04:47:51 +0300
commit0e7b5edc54da6a0e38a06677a47ae5e717f3e0a6 (patch)
tree24c4089a10387b3a4099580e59c7cf51f66c68b2
parent497788421f4c9a2fa2e7fa4cc37ca3f8859bb4e3 (diff)
Fix unicode support in tinydir_file_open
-rw-r--r--tinydir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinydir.h b/tinydir.h
index 0a9da0c..23ea703 100644
--- a/tinydir.h
+++ b/tinydir.h
@@ -645,7 +645,7 @@ int tinydir_file_open(tinydir_file *file, const _tinydir_char_t *path)
empty */
if (drive_buf[0] == '\0' && dir_name_buf[0] == '\0')
{
- strcpy(dir_name_buf, ".");
+ _tinydir_strcpy(dir_name_buf, TINYDIR_STRING("."));
}
/* Concatenate the drive letter and dir name to form full dir name */
_tinydir_strcat(drive_buf, dir_name_buf);