=== modified file 'driver-csi.c' --- driver-csi.c 2008-10-09 22:53:35 +0000 +++ driver-csi.c 2008-10-09 22:19:10 +0000 @@ -412,7 +412,6 @@ if(number >= csi->ncsifuncs) { struct keyinfo *new_csifuncs = realloc(csi->csifuncs, sizeof(new_csifuncs[0]) * (number + 1)); - // TODO: Handle realloc() failure csi->csifuncs = new_csifuncs; // Fill in the hole === modified file 'driver-ti.c' --- driver-ti.c 2008-10-09 22:53:35 +0000 +++ driver-ti.c 2008-10-09 22:19:10 +0000 @@ -180,7 +180,7 @@ if(ti->nseqs == ti->alloced_seqs) { ti->alloced_seqs *= 2; void *newseqs = realloc(ti->seqs, ti->alloced_seqs * sizeof(ti->seqs[9])); - // TODO: Handle realloc() failure + // TODO: Error handle ti->seqs = newseqs; } === modified file 'termkey.c' --- termkey.c 2008-10-09 22:53:35 +0000 +++ termkey.c 2008-10-09 22:19:10 +0000 @@ -471,7 +471,6 @@ tk->buffsize *= 2; unsigned char *newbuffer = realloc(tk->buffer, tk->buffsize); - // TODO: Handle realloc() failure tk->buffer = newbuffer; } @@ -504,7 +503,6 @@ if(sym >= tk->nkeynames) { const char **new_keynames = realloc(tk->keynames, sizeof(new_keynames[0]) * (sym + 1)); - // TODO: Handle realloc() failure tk->keynames = new_keynames; // Fill in the hole