aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xdmcp.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-03-26 11:06:26 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2007-03-26 11:06:26 +0000
commitd5d5159b6d622cfc12bc8abb269be24529a5795f (patch)
treeb8f2ffabbc79998f21731cceca8a4fca4031281e /epan/dissectors/packet-xdmcp.c
parenta2f4ee6daf6d7536b37bb63b7fd64fcfcbffd84c (diff)
From Sebastien Tandel
fixes for various compiler warnings svn path=/trunk/; revision=21210
Diffstat (limited to 'epan/dissectors/packet-xdmcp.c')
-rw-r--r--epan/dissectors/packet-xdmcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-xdmcp.c b/epan/dissectors/packet-xdmcp.c
index 1f48a97e07..aeb1ccfd4d 100644
--- a/epan/dissectors/packet-xdmcp.c
+++ b/epan/dissectors/packet-xdmcp.c
@@ -118,7 +118,7 @@ static gint xdmcp_add_string(proto_tree *tree, gint hf,
len = tvb_get_ntohs(tvb, offset);
p = tvb_get_ptr(tvb, offset+2, len);
str = g_malloc(len+1);
- stringCopy(str, p, len);
+ stringCopy(str, (gchar*)p, len);
proto_tree_add_string(tree, hf, tvb, offset, len+2, str);
g_free(str);
@@ -135,7 +135,7 @@ static gint xdmcp_add_text(proto_tree *tree, const char *text,
len = tvb_get_ntohs(tvb, offset);
p = tvb_get_ptr(tvb, offset+2, len);
str = g_malloc(len+1);
- stringCopy(str, p, len);
+ stringCopy(str, (gchar*)p, len);
proto_tree_add_text(tree, tvb, offset, len+2, "%s: %s", text, str);
g_free(str);