+ if (optr != NULL) {
+ _dl_write(STDERR_FILENO, msg1, sizeof(msg1) - 1);
+ _dl_exit(7);
+ }I think this is a trap. A true realloc is not much to add. It can be the simple "always realloc" method, since actually that is better for security right off the bat....
