OSDN Git Service
(root)
/
lha
/
lha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
37a90e1
)
* huf.c (alloc_buf): call fatal_error() when memory allocation failed
author
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Fri, 17 May 2002 20:17:58 +0000
(20:17 +0000)
committer
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Fri, 17 May 2002 20:17:58 +0000
(20:17 +0000)
instead of returning NULL.
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@43
6a8cc165
-1e22-0410-a132-
eb4e3f353aba
src/huf.c
patch
|
blob
|
history
diff --git
a/src/huf.c
b/src/huf.c
index
8004083
..
cc1bde4
100644
(file)
--- a/
src/huf.c
+++ b/
src/huf.c
@@
-262,7
+262,7
@@
alloc_buf( /* void */ )
while ((buf = (unsigned char *) malloc(bufsiz)) == NULL) {
bufsiz = (bufsiz / 10) * 9;
if (bufsiz < 4 * 1024)
-
break
;
+
fatal_error("Not enough memory")
;
}
return buf;
}