summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-01-18 19:36:55 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-01-18 19:36:55 +0000
commitdc4e9e8378e94abb67dd380d037046b7b8eba1c5 (patch)
treea4218f71b03829756fa9ed6b892a94699d3b92dd
parent3ccf1012957ec457a484fa9b19620919f016864d (diff)
downloadATCD-dc4e9e8378e94abb67dd380d037046b7b8eba1c5.tar.gz
ChangeLogTag: Fri Jan 18 13:21:28 2002 Jeff Parsons <parsons@cs.wustl.edu>
-rw-r--r--TAO/TAO_IDL/be/be_interface.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp
index a681b0e7552..d4b68e22e0a 100644
--- a/TAO/TAO_IDL/be/be_interface.cpp
+++ b/TAO/TAO_IDL/be/be_interface.cpp
@@ -1111,6 +1111,17 @@ be_interface::gen_operation_table (const char *flat_name,
idl_global->temp_dir (),
flat_name);
+ // QNX can't handle individual file names (path components)
+ // longer than 48 characters.
+#if defined(__QNX__)
+ size_t temp_dir_len = ACE_OS::strlen (idl_global->temp_dir));
+
+ if (ACE_OS::strlen (temp_file) > temp_dir_len + 47)
+ {
+ temp_file[temp_dir_len + 47] = 0;
+ }
+#endif /* defined(__QNX__) */
+
// Save this file name with the codegen singleton.
tao_cg->gperf_input_filename (temp_file);