All pastes #273392 Raw Edit

Stuff

public c v1 · immutable
·published 2006-12-09 21:41 UTC
rendered paste body
    char *temp;    temp = malloc(sizeof(image->data));    if( !temp ) {        printf("no memory available!\n");        sceKernelSleepThread();        sceKernelExitGame();    }    swizzle_fast((u8*)temp, (u8*)image->data, image->imageWidth, image->imageHeight);    memcpy(image->data, temp, sizeof(image->data));    free(temp);