Another try to fix the cast problem.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 13 Aug 2008 11:04:15 +0000 (11:04 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 13 Aug 2008 11:04:15 +0000 (11:04 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26001 f5534014-38df-0310-8fa8-9805f1628bb7

wsutil/file_util.c

index acba2eaec4a4a6509c82f390d2efdfe0c5c60310..4e46131fa675bdc720fa0fd399dcc161ca69ad73 100644 (file)
@@ -238,7 +238,7 @@ ws_stdio_stat (const gchar *filename,
       while (len > 0 && G_IS_DIR_SEPARATOR (wfilename[len-1]))
        len--;
       if (len > 0 &&
-         (!g_path_is_absolute (filename) || len > (size_t) g_path_skip_root (filename) - filename))
+         (!g_path_is_absolute (filename) || len > (size_t) (g_path_skip_root (filename) - filename)))
        wfilename[len] = '\0';
 
       retval = _wstat (wfilename, (struct _stat *) buf);