summaryrefslogtreecommitdiff
path: root/tempfile.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-11-16 20:08:31 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-11-16 20:08:31 +0000
commit6488fe601d99a796d4467b5b5abd754b2ae7e95b (patch)
treed2975bbf7fb506dcd0f67b849490d7c820d0fd35 /tempfile.c
parent26db1c8a73cc7576dc4075ad61534883d7c2b4ba (diff)
downloadwireshark-6488fe601d99a796d4467b5b5abd754b2ae7e95b.tar.gz
Add a cast to fix:
tempfile.c(202) : warning C4267: '=' : conversion from 'size_t' to 'unsigned long' svn path=/trunk/; revision=34911
Diffstat (limited to 'tempfile.c')
-rw-r--r--tempfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tempfile.c b/tempfile.c
index 720804e2ec..992dc1ce99 100644
--- a/tempfile.c
+++ b/tempfile.c
@@ -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);