diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-11 15:49:35 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-09-11 15:49:35 +0000 |
commit | 43d2d40ca6c06f6da0e92185cf3583eed16e048d (patch) | |
tree | 414d2a82fa6c95f1e800cef1638c485cb76d1082 /ace/ACE.cpp | |
parent | 7a4929d7c0cf507df46bee730cfa010b8d8a0b86 (diff) | |
download | ATCD-43d2d40ca6c06f6da0e92185cf3583eed16e048d.tar.gz |
ChangeLogTag:Thu Sep 11 10:37:00 1997 Carlos O'Ryan <coryan@polka.cs.wustl.edu>
Diffstat (limited to 'ace/ACE.cpp')
-rw-r--r-- | ace/ACE.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp index c061180a7e4..ba3caa669a1 100644 --- a/ace/ACE.cpp +++ b/ace/ACE.cpp @@ -258,9 +258,9 @@ ACE::ldfind (const char filename[], { ACE_TRACE ("ACE::ldfind"); - char tempcopy[MAXPATHLEN]; - char searchpathname[MAXPATHLEN]; - char searchfilename[MAXPATHLEN]; + char tempcopy[MAXPATHLEN + 1]; + char searchpathname[MAXPATHLEN + 1]; + char searchfilename[MAXPATHLEN + 1]; // Create a copy of filename to work with. if (ACE_OS::strlen (filename) + 1 > (sizeof tempcopy / sizeof (char))) @@ -440,7 +440,7 @@ FILE * ACE::ldopen (const char *filename, const char *type) { ACE_TRACE ("ACE::ldopen"); - char buf[MAXPATHLEN]; + char buf[MAXPATHLEN + 1]; if (ACE::ldfind (filename, buf, sizeof buf) == -1) return 0; @@ -2010,10 +2010,10 @@ ACE::get_ip_interfaces (size_t &count, const TCHAR *INVALID_TCPIP_DEVICE_ADDR = __TEXT ("0.0.0.0"); const int MAX_STRING_SZ = 4096; - TCHAR raw_buffer[MAXPATHLEN]; - DWORD raw_buflen = MAXPATHLEN; - TCHAR buffer[MAXPATHLEN]; - DWORD buf_len = MAXPATHLEN; + TCHAR raw_buffer[ACE_MAX_FULLY_QUALIFIED_NAME_LEN + 1]; + DWORD raw_buflen = ACE_MAX_FULLY_QUALIFIED_NAME_LEN + 1; + TCHAR buffer[ACE_MAX_FULLY_QUALIFIED_NAME_LEN + 1]; + DWORD buf_len = ACE_MAX_FULLY_QUALIFIED_NAME_LEN + 1; if (::get_reg_value (LINKAGE_KEY1, BIND_NAME_ID, |