projects
/
m17n
/
libotf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed32545
)
(GSTRING_INSERT): Fix size of reallocating
author
handa
<handa>
Fri, 3 Sep 2004 08:30:17 +0000
(08:30 +0000)
committer
handa
<handa>
Fri, 3 Sep 2004 08:30:17 +0000
(08:30 +0000)
memory.
src/otfdrive.c
patch
|
blob
|
history
diff --git
a/src/otfdrive.c
b/src/otfdrive.c
index
f7f2034
..
975e969
100644
(file)
--- a/
src/otfdrive.c
+++ b/
src/otfdrive.c
@@
-53,8
+53,9
@@
write to the Free Software Foundation, Inc., 59 Temple Place, Suite
char *errfmt = "GSTRING%s"; \
\
gstring->size = gstring->used + len; \
- gstring->glyphs = (OTF_Glyph *) realloc (gstring->glyphs, \
- gstring->size); \
+ gstring->glyphs \
+ = (OTF_Glyph *) realloc (gstring->glyphs, \
+ sizeof (OTF_Glyph) * gstring->size); \
if (! gstring->glyphs) \
OTF_ERROR (OTF_ERROR_MEMORY, ""); \
} \