diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-03-15 02:57:16 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-03-15 02:57:16 +0000 |
commit | 02c7132ea4d6f598778d892bc6b5e7aae75c5f29 (patch) | |
tree | 918893b776b9da3d74a3bbae38730e5206f2cc28 /epan/ftypes/ftype-tvbuff.c | |
parent | 9ebac2bff6a3b945a6bdef67a9548fb648387888 (diff) |
Some more P64 fixes - they all assume we don't have truly gigantic
strings.
svn path=/trunk/; revision=27720
Diffstat (limited to 'epan/ftypes/ftype-tvbuff.c')
-rw-r--r-- | epan/ftypes/ftype-tvbuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/ftypes/ftype-tvbuff.c b/epan/ftypes/ftype-tvbuff.c index 135de1d0be..bd81508bd1 100644 --- a/epan/ftypes/ftype-tvbuff.c +++ b/epan/ftypes/ftype-tvbuff.c @@ -79,9 +79,9 @@ val_from_string(fvalue_t *fv, char *s, LogFunc logfunc _U_) /* Make a tvbuff from the string. We can drop the * terminating NUL. */ - private_data = g_memdup(s, strlen(s)); + private_data = g_memdup(s, (guint)strlen(s)); new_tvb = tvb_new_real_data(private_data, - strlen(s), strlen(s)); + (guint)strlen(s), (gint)strlen(s)); /* Let the tvbuff know how to delete the data. */ tvb_set_free_cb(new_tvb, free_tvb_data); |