diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-12-28 23:04:04 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-12-28 23:56:40 -0800 |
| commit | 5af81f54de8747c7ef0f1e7d18395a758bb13f8e (patch) | |
| tree | d98f4149017721d250425a90d3d751a809659fa0 /src | |
| parent | 919b7ee54fd8f2bada066e90f31c682fb70c2821 (diff) | |
| download | nng-5af81f54de8747c7ef0f1e7d18395a758bb13f8e.tar.gz nng-5af81f54de8747c7ef0f1e7d18395a758bb13f8e.tar.bz2 nng-5af81f54de8747c7ef0f1e7d18395a758bb13f8e.zip | |
Compile warning (possible size_t overrun) on Windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/platform/windows/win_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/windows/win_file.c b/src/platform/windows/win_file.c index adb57a75..e10f2848 100644 --- a/src/platform/windows/win_file.c +++ b/src/platform/windows/win_file.c @@ -197,8 +197,8 @@ nni_plat_dir_close(void *dir) int nni_plat_dir_create(const char *name) { - char parent[MAX_PATH + 1]; - int len; + char parent[MAX_PATH + 1]; + size_t len; nni_strlcpy(parent, name, sizeof(parent)); len = strlen(parent); |
