bufsize = 4096 in encode/decode

This commit is contained in:
p.kosyh 2009-10-12 06:35:06 +00:00
parent 2e18174388
commit e7441b459e

View file

@ -228,7 +228,7 @@ typedef struct LoadF {
int extraline;
unsigned char byte;
FILE *f;
unsigned char buff[LUAL_BUFFERSIZE];
unsigned char buff[4096];
} LoadF;
static const char *getF (lua_State *L, void *ud, size_t *size) {
@ -335,7 +335,7 @@ int instead_encode(const char *s, const char *d)
size_t size;
int i = 0;
unsigned char byte = 0xcc;
unsigned char buff[LUAL_BUFFERSIZE];
unsigned char buff[4096];
src = fopen(s, "r");
if (!src) {
@ -361,4 +361,5 @@ int instead_encode(const char *s, const char *d)
fclose(src);
fclose(dst);
return 0;
}
}