I'm having a problem with my app, it crashes when I try to allocate some memory. What I use to allocate the memory is
entpairs is defined as a entpairs_tCode:entpairs[i].key = (char*) (MAX_ENTITY_KEYLENGTH*sizeof(char));
and MAX_ENTITY_KEYLENGTH isCode:typedef struct { char *key; char *val; } entpairs_t;
Is there something wrong with my code?Code:#define MAX_ENTITY_KEYLENGTH 64