Skip to content

Commit

Permalink
EPOC fix for lib/io_udp.t failure (from Olaf Flebbe)
Browse files Browse the repository at this point in the history
p4raw-id: //depot/maint-5.6/perl@9524
  • Loading branch information
Gurusamy Sarathy committed Apr 3, 2001
1 parent 541b948 commit 1417090
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pp_sys.c
Expand Up @@ -1489,10 +1489,6 @@ 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
#ifdef OS2 /* At least Warp3+IAK: only the first byte of bufsize set */
if (bufsize >= 256)
bufsize = 255;
Expand All @@ -1503,6 +1499,10 @@ PP(pp_sysread)
(struct sockaddr *)namebuf, &bufsize);
if (length < 0)
RETPUSHUNDEF;
#ifdef EPOC
/* Bogus return without padding */
bufsize = sizeof (struct sockaddr_in);
#endif
SvCUR_set(bufsv, length);
*SvEND(bufsv) = '\0';
(void)SvPOK_only(bufsv);
Expand Down

0 comments on commit 1417090

Please sign in to comment.