summaryrefslogtreecommitdiff
path: root/wsutil/tempfile.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-11-19 11:25:17 -0500
committerBill Meier <wmeier@newsguy.com>2014-11-19 16:31:42 +0000
commitcb090e81ec64012e1a3094670aeb8658cb550f1e (patch)
tree54bc99cf6f4849c9865ee8928e453a418863384d /wsutil/tempfile.c
parent67ab27a15b671159b5b7ba2d01981a726b6054bc (diff)
downloadwireshark-cb090e81ec64012e1a3094670aeb8658cb550f1e.tar.gz
[pedantic] Replace usage of 'long' and 'long long'
Change-Id: I78fc82c1a83eb04d78a11fc76710c92dfc916208 Reviewed-on: https://code.wireshark.org/review/5395 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'wsutil/tempfile.c')
-rw-r--r--wsutil/tempfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/tempfile.c b/wsutil/tempfile.c
index 20efc80438..dab286752f 100644
--- a/wsutil/tempfile.c
+++ b/wsutil/tempfile.c
@@ -171,7 +171,7 @@ create_tempfile(char **namebuf, const char *pfx)
{
static struct _tf {
char *path;
- unsigned long len;
+ size_t len;
} tf[MAX_TEMPFILES];
static int idx;
@@ -218,7 +218,7 @@ create_tempfile(char **namebuf, const char *pfx)
tmp_file = g_strconcat(tmp_dir, sep, safe_pfx, "_", timestr, "_", TMP_FILE_SUFFIX, NULL);
g_free(safe_pfx);
if (strlen(tmp_file) > tf[idx].len) {
- tf[idx].len = (int)strlen(tmp_file) + 1;
+ tf[idx].len = 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);