summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-07-05 20:02:55 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-07-05 20:02:55 +0000
commit7c7bf78e2115cf1c10624a9f40e98f0bff340218 (patch)
treeaf654ff16d99bb96246cbc035812b56492063def /pp_sys.c
parent29209bc5efc823322ed539ae434cba1765cb5082 (diff)
parentabf95952312f9cf679a3ebd0bb2f1758f1585f0f (diff)
downloadperl-7c7bf78e2115cf1c10624a9f40e98f0bff340218.tar.gz
Integrate with mainperl.
p4raw-id: //depot/cfgperl@3598
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index b11259b450..483ddceab5 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1465,6 +1465,10 @@ PP(pp_sysread)
#else
bufsize = sizeof namebuf;
#endif
+#ifdef OS2 /* At least Warp3+IAK: only the first byte of bufsize set */
+ if (bufsize >= 256)
+ bufsize = 255;
+#endif
buffer = SvGROW(bufsv, length+1);
/* 'offset' means 'flags' here */
length = PerlSock_recvfrom(PerlIO_fileno(IoIFP(io)), buffer, length, offset,