aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-08-12 22:11:15 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2008-08-12 22:11:15 +0000
commit2b4e78706c17cdf45d60929107949f7f25fcc7d7 (patch)
treef3a545b60b915f19c55621a7782a0afde56c4032 /wsutil
parent98dc7694a88041aae4704684f17979c04033e148 (diff)
Take courage!
http://www.flickr.com/photos/clammm/503029097/ git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25993 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/file_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/file_util.c b/wsutil/file_util.c
index 59a5b50dde..431fb40967 100644
--- a/wsutil/file_util.c
+++ b/wsutil/file_util.c
@@ -226,7 +226,7 @@ ws_stdio_stat (const gchar *filename,
wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL);
int retval;
int save_errno;
- int len;
+ size_t len;
if (wfilename == NULL)
{
@@ -234,7 +234,7 @@ ws_stdio_stat (const gchar *filename,
return -1;
}
- len = (int) wcslen (wfilename);
+ len = wcslen (wfilename);
while (len > 0 && G_IS_DIR_SEPARATOR (wfilename[len-1]))
len--;
if (len > 0 &&