summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_decl.cpp
diff options
context:
space:
mode:
authorgokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-12 22:00:38 +0000
committergokhale <gokhale@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-12 22:00:38 +0000
commit829451f137fad3c27a00581ab4ad46656ea11cff (patch)
treedc7b6897b4aeb0c39662507515d6231e8f1d9c34 /TAO/TAO_IDL/be/be_decl.cpp
parent6a754b44266eaf8fb45b87d5fc5e2e1d2e9c386a (diff)
downloadATCD-829451f137fad3c27a00581ab4ad46656ea11cff.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/be/be_decl.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_decl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_decl.cpp b/TAO/TAO_IDL/be/be_decl.cpp
index 6ee86d85266..c88099131dd 100644
--- a/TAO/TAO_IDL/be/be_decl.cpp
+++ b/TAO/TAO_IDL/be/be_decl.cpp
@@ -331,6 +331,7 @@ be_decl::tc_name2long (const char *name, long *&larr, long &arrlen)
{
static long buf [NAMEBUFSIZE / sizeof (long)];
long slen;
+ long i;
slen = ACE_OS::strlen (name) + 1; // 1 for NULL terminating
@@ -341,6 +342,9 @@ be_decl::tc_name2long (const char *name, long *&larr, long &arrlen)
ACE_OS::memset (buf, '\0', arrlen*4);
larr = buf;
ACE_OS::memcpy (buf, name, arrlen*4);
+ for (i = 0; i < arrlen; i++)
+ larr [i] = ACE_HTONL (larr [i]);
+
#if 0
for (i=0; i < ACE_OS::strlen (name); i++)
{