diff options
Diffstat (limited to 'ldump.c')
-rw-r--r-- | ldump.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldump.c,v 1.17 2010/10/13 21:04:52 lhf Exp $ | 2 | ** $Id: ldump.c,v 1.18 2011/05/06 13:35:17 lhf Exp $ |
3 | ** save precompiled Lua chunks | 3 | ** save precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -69,7 +69,7 @@ static void DumpString(const TString* s, DumpState* D) | |||
69 | { | 69 | { |
70 | size_t size=s->tsv.len+1; /* include trailing '\0' */ | 70 | size_t size=s->tsv.len+1; /* include trailing '\0' */ |
71 | DumpVar(size,D); | 71 | DumpVar(size,D); |
72 | DumpBlock(getstr(s),size,D); | 72 | DumpBlock(getstr(s),size*sizeof(char),D); |
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
@@ -150,7 +150,7 @@ static void DumpFunction(const Proto* f, DumpState* D) | |||
150 | 150 | ||
151 | static void DumpHeader(DumpState* D) | 151 | static void DumpHeader(DumpState* D) |
152 | { | 152 | { |
153 | char h[LUAC_HEADERSIZE]; | 153 | lu_byte h[LUAC_HEADERSIZE]; |
154 | luaU_header(h); | 154 | luaU_header(h); |
155 | DumpBlock(h,LUAC_HEADERSIZE,D); | 155 | DumpBlock(h,LUAC_HEADERSIZE,D); |
156 | } | 156 | } |