From 5bf62ffb7054c30de3b8bbf3d18f420f731eb765 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 21 Jun 2004 21:45:41 +0000 Subject: [PATCH] =?utf8?q?Bugfix.=20Hab=C3=ADan=20muchos=20int*=20que=20de?= =?utf8?q?b=C3=ADan=20ser=20char*,=20por=20favor=20fijense=20si=20estoy=20?= =?utf8?q?errado,=20pero=20al=20menos=20ahora=20no=20tira=20el=20segmentat?= =?utf8?q?ion=20fault.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/mtf/main.c | 3 ++- src/mtf/mtf.c | 6 +++--- src/mtf/mtf.h | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mtf/main.c b/src/mtf/main.c index 3f6f174..796950a 100644 --- a/src/mtf/main.c +++ b/src/mtf/main.c @@ -9,7 +9,7 @@ int main(int argc, char *argv[] ) { char buff[BUFFER_SIZE]; char *z, *dato; - int *pos; + char *pos; int len; int i, size; @@ -31,3 +31,4 @@ int main(int argc, char *argv[] ) return 0; } + diff --git a/src/mtf/mtf.c b/src/mtf/mtf.c index e889817..3967cbc 100644 --- a/src/mtf/mtf.c +++ b/src/mtf/mtf.c @@ -19,7 +19,7 @@ void print_z(char *z, int len) char *jacu_mtf(char *datos, int len) { char *z; - int *pos; + char *pos; int i, size; pos = (char *)malloc(len*sizeof(char)); @@ -32,14 +32,14 @@ char *jacu_mtf(char *datos, int len) return pos; } -char *jacu_mtf_inv(char *z, int *pos, int len) +char *jacu_mtf_inv(char *z, char *pos, int len) { char *datos; int i; datos = (char*)malloc(sizeof(char)*len); for(i=0; i