From 4717e3a526359f9658e6d7a425460de60986013c Mon Sep 17 00:00:00 2001 From: etxrab Date: Tue, 16 Nov 2010 20:08:31 +0000 Subject: [PATCH] Add a cast to fix: tempfile.c(202) : warning C4267: '=' : conversion from 'size_t' to 'unsigned long' git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34911 f5534014-38df-0310-8fa8-9805f1628bb7 --- tempfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);