diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-03-22 23:19:50 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-03-22 23:19:50 +0000 |
commit | 6c2202091822a8a262aaded0db18c6432549628e (patch) | |
tree | c49f8b282f8ad57b43d5bb7e2232ba7f8325c36d /ace/SOCK_Dgram.cpp | |
parent | e80fa366639b9219cedb1735a95c240ce0d5cfb3 (diff) | |
download | ATCD-6c2202091822a8a262aaded0db18c6432549628e.tar.gz |
foo
Diffstat (limited to 'ace/SOCK_Dgram.cpp')
-rw-r--r-- | ace/SOCK_Dgram.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ace/SOCK_Dgram.cpp b/ace/SOCK_Dgram.cpp index d52b30d3063..df84064e61d 100644 --- a/ace/SOCK_Dgram.cpp +++ b/ace/SOCK_Dgram.cpp @@ -191,9 +191,9 @@ ACE_SOCK_Dgram::send (const iovec iov[], char *buf; #if defined (ACE_HAS_ALLOCA) - buf = (iovec *) alloca (length); + buf = alloca (length); #else - ACE_NEW_RETURN (buf, length, -1); + ACE_NEW_RETURN (buf, char[length], -1); #endif /* !defined (ACE_HAS_ALLOCA) */ char *ptr = buf; @@ -231,10 +231,12 @@ ACE_SOCK_Dgram::recv (iovec iov[], else length += iov[i].iov_len; + char *buf; + #if defined (ACE_HAS_ALLOCA) - buf = (iovec *) alloca (length); + buf = alloca (length); #else - ACE_NEW_RETURN (buf, length, -1); + ACE_NEW_RETURN (buf, char[length], -1); #endif /* !defined (ACE_HAS_ALLOCA) */ length = ACE_SOCK_Dgram::recv (buf, length, addr, flags); |