summaryrefslogtreecommitdiff
path: root/cesar/host
diff options
context:
space:
mode:
authorburet2008-05-23 12:13:39 +0000
committerburet2008-05-23 12:13:39 +0000
commit78d2a08f2bbfb2488c8d6d5f2d21be70e9b4d382 (patch)
treea6fabff23bdd82da1cf59403e3d6a9222b2768b0 /cesar/host
parentc678202e2baf709d69f0b61cec0e1bf8324cb986 (diff)
Maximus proto: error correction in fcall parameters.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2086 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/host')
-rw-r--r--cesar/host/fcall/src/fcall_param.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/cesar/host/fcall/src/fcall_param.c b/cesar/host/fcall/src/fcall_param.c
index 4397d4bedd..a2f1114376 100644
--- a/cesar/host/fcall/src/fcall_param.c
+++ b/cesar/host/fcall/src/fcall_param.c
@@ -199,7 +199,13 @@ int fcall_param_bind(fcall_param_t *param, sci_msg_t *msg, char *id, unsigned in
{
/* found id */
/* get length */
- length = *param->param_table[index].length;
+
+#ifndef FCALL_PROTO
+ length = ntohs(*param->param_table[index].length);
+#else /* FCALL_PROTO */
+ length = read_u16_from_word((u8 *)param->param_table[index].length);
+#endif /* FCALL_PROTO */
+
/* check the maximum available length */
if(length > max_length)
length = max_length;