Move the definition of the structure pointed to by a FILE_T into
[obnox/wireshark/wip.git] / tempfile.c
index 720804e2ec5ba1b35b6582d9ef30626cccfa4666..992dc1ce9924443735e46af0a3cd585d3eb84a2b 100644 (file)
@@ -199,7 +199,7 @@ create_tempfile(char **namebuf, const char *pfx)
        sep[0] = G_DIR_SEPARATOR;
        tmp_file = g_strconcat(tmp_dir, sep, pfx, "_", timestr, "_", TMP_FILE_SUFFIX, NULL);
        if (strlen(tmp_file) > tf[idx].len) {
-               tf[idx].len = strlen(tmp_file) + 1;
+               tf[idx].len = (int)strlen(tmp_file) + 1;
                tf[idx].path = (char *)g_realloc(tf[idx].path, tf[idx].len);
        }
        g_strlcpy(tf[idx].path, tmp_file, tf[idx].len);