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
(parent:
51c7664
)
* src/lharc.c (xstrdup): fix typo.
author
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 18 May 2002 19:31:00 +0000
(19:31 +0000)
committer
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 18 May 2002 19:31:00 +0000
(19:31 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@59
6a8cc165
-1e22-0410-a132-
eb4e3f353aba
src/lharc.c
patch
|
blob
|
history
diff --git
a/src/lharc.c
b/src/lharc.c
index
5455114
..
7850e05
100644
(file)
--- a/
src/lharc.c
+++ b/
src/lharc.c
@@
-619,7
+619,7
@@
xstrdup(str)
char *str;
{
int len = strlen(str);
- char *p = (char *)xmalloc(
str
+ 1);
+ char *p = (char *)xmalloc(
len
+ 1);
if (!p)
fatal_error("Not enough memory");
strcpy(p, str);