diff options
author | Daichi GOTO <daichi@FreeBSD.org> | 2003-07-14 05:27:25 +0000 |
---|---|---|
committer | Daichi GOTO <daichi@FreeBSD.org> | 2003-07-14 05:27:25 +0000 |
commit | abfe4d84c7024a0bde95af52b1bbf9c429cdcfa6 (patch) | |
tree | 6f7a23b67e54bafca5bd8b74219a007a468908a2 /games/asc/files/patch-source::oldlzw.cpp | |
parent | update security/drweb-postfix: 4.29.10a -> 4.29.12d (diff) |
update games/asc: 1.13.5.1 -> 1.13.7
PR: 54359
Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw> (maintainer)
Diffstat (limited to 'games/asc/files/patch-source::oldlzw.cpp')
-rw-r--r-- | games/asc/files/patch-source::oldlzw.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/games/asc/files/patch-source::oldlzw.cpp b/games/asc/files/patch-source::oldlzw.cpp deleted file mode 100644 index 20ea8db57abd..000000000000 --- a/games/asc/files/patch-source::oldlzw.cpp +++ /dev/null @@ -1,45 +0,0 @@ - -$FreeBSD$ - ---- source/oldlzw.cpp 2001/02/17 15:08:39 1.1 -+++ source/oldlzw.cpp 2001/02/17 15:08:54 -@@ -342,7 +339,7 @@ - DecodeBuffer = (unsigned char *) realloc ( DecodeBuffer, DecodeBufferSize + 1000 ); - - if ( ! DecodeBuffer ) -- throw toutofmem ( DecodeBufferSize + 1000 ); -+ goto except1; - else - DecodeBufferSize += 1000; - } -@@ -350,6 +347,9 @@ - } - DecodeBuffer[ count++ ] = code; - return ( count ); -+ -+except1: -+ throw toutofmem ( DecodeBufferSize + 1000 ); - } - - -@@ -464,7 +464,7 @@ - count = LZWLoadBuffer ( 0, incode ); - - if ( count == 0 ) -- throw ASCexception(); -+ goto except1; - - inchar = DecodeBuffer[ count - 1 ]; - while ( count ) -@@ -492,7 +492,10 @@ - return pos; - } - -- // return 0; -+ return 0; -+ -+except1: -+ throw ASCexception(); - } - - |