diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2003-07-24 15:10:05 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2003-07-24 15:10:05 +0000 |
commit | bb475e4713d66cc8134ccc4baef8b99b10bf356c (patch) | |
tree | 706865a882908f496ba6c1093cfbf7a7b6a1d653 /textproc/xmlppm/files | |
parent | Fix building under -CURRENT (gcc 3.3) (diff) |
Fix building under -CURRENT (gcc 3.3) [1]
Use %%DOCSDIR%% instead of hardcoded path (save 10 bytes) [2]
Submitted by: Simon Barner <barner@in.tum.de> [1], osa [2]
Diffstat (limited to 'textproc/xmlppm/files')
-rw-r--r-- | textproc/xmlppm/files/patch-IFile.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/xmlppm/files/patch-IFile.cpp b/textproc/xmlppm/files/patch-IFile.cpp new file mode 100644 index 000000000000..d50b235eb71b --- /dev/null +++ b/textproc/xmlppm/files/patch-IFile.cpp @@ -0,0 +1,11 @@ +--- IFile.cpp.orig Wed Jul 23 04:32:54 2003 ++++ IFile.cpp Wed Jul 23 04:35:43 2003 +@@ -100,7 +100,7 @@ + while(insz > 0) { + size_t result; + outsz = BUFFSIZE; +- result = iconv(ifile->iconv, &(char*)inptr, &insz, &outptr, &outsz); ++ result = iconv(ifile->iconv, &inptr, &insz, &outptr, &outsz); + total += fwrite(outbuf, sizeof(char), BUFFSIZE-outsz, ifile->file); + if(result == (size_t)-1 && errno != E2BIG) { + return total; |