diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2000-11-13 20:21:57 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2000-11-13 20:21:57 +0000 |
commit | a10525673ecdf376a72ebd9267ef94c761ff1705 (patch) | |
tree | 610bbbc901ca3136c72e3313f193ab4b45c78455 /perlio.c | |
parent | 14aaf8e8d5ef5f7630e198d7ed4c5b1ce477445f (diff) | |
parent | 436e486158da40087b7328d1a4e2be3abcd680f8 (diff) | |
download | perl-a10525673ecdf376a72ebd9267ef94c761ff1705.tar.gz |
Integrate mainline ...
p4raw-id: //depot/perlio@7675
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } } |