--- mem_align.c 2002/11/17 00:51:11 1.11 +++ mem_align.c 2002/12/15 01:12:01 1.13 @@ -51,7 +51,7 @@ * exception also makes it possible to release a modified version which * carries forward this exception. * - * $Id: mem_align.c,v 1.11 2002/11/17 00:51:11 edgomez Exp $ + * $Id: mem_align.c,v 1.13 2002/12/15 01:12:01 edgomez Exp $ * ****************************************************************************/ @@ -88,10 +88,10 @@ if ((mem_ptr = (uint8_t *) malloc(size + 1)) != NULL) { /* Store (mem_ptr - "real allocated memory") in *(mem_ptr-1) */ - *mem_ptr = 0; + *mem_ptr = 1; /* Return the mem_ptr pointer */ - return (void *) mem_ptr++; + return (void *)(mem_ptr+1); }