Here's why:
Code: Select all
char* fbuff = (char*) kmalloc( 256 );
fbuff = (char*) PadFilename( (uchar_t*) filename );
Code: Select all
char* fbuff = (char*) kmalloc( 256 );
uint_t fbuff_addr = (uint_t) fbuff; /** we trash the fbuff pointer, and I don't yet know how **/
fbuff = (char*) PadFilename( (uchar_t*) filename );
Code: Select all
char* fbuff = (char*) kmalloc( 256 );
uint_t fbuff_addr = (uint_t) fbuff; /** we trash the fbuff pointer, and I don't yet know how **/
fbuff = (char*) PadFilename( (uchar_t*) filename ); /** just figured it out... **/
So, was this a stupid mistake?