summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2000-11-13 20:21:57 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2000-11-13 20:21:57 +0000
commita10525673ecdf376a72ebd9267ef94c761ff1705 (patch)
tree610bbbc901ca3136c72e3313f193ab4b45c78455 /perlio.c
parent14aaf8e8d5ef5f7630e198d7ed4c5b1ce477445f (diff)
parent436e486158da40087b7328d1a4e2be3abcd680f8 (diff)
downloadperl-a10525673ecdf376a72ebd9267ef94c761ff1705.tar.gz
Integrate mainline ...
p4raw-id: //depot/perlio@7675
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index a0e6bc00b7..8d54f77f42 100644
--- a/perlio.c
+++ b/perlio.c
@@ -2314,7 +2314,7 @@ int
PerlIO_getpos(PerlIO *f, Fpos_t *pos)
{
*pos = PerlIO_tell(f);
- return 0;
+ return *pos == -1 ? -1 : 0;
}
#else
#ifndef PERLIO_IS_STDIO
@@ -2359,7 +2359,8 @@ PerlIO_vsprintf(char *s, int n, const char *fmt, va_list ap)
if (strlen(s) >= (STRLEN)n)
{
dTHX;
- PerlIO_puts(Perl_error_log,"panic: sprintf overflow - memory corrupted!\n");
+ (void)PerlIO_puts(Perl_error_log,
+ "panic: sprintf overflow - memory corrupted!\n");
my_exit(1);
}
}