diff -u nano/files.c nano-realloc/files.c --- nano/files.c Sun Jan 26 11:51:45 2003 +++ nano-realloc/files.c Sun Jan 26 13:48:19 2003 @@ -2925,7 +2925,7 @@ chmod(nanohist, S_IRUSR | S_IWUSR); /* write oldest first */ for (h = search_history.tail ; h->prev ; h = h->prev) { - nrealloc(h->data, strlen(h->data) + 1); + h->data = nrealloc(h->data, strlen(h->data) + 1); strcat(h->data, "\n"); if (fputs(h->data, hist) == EOF) { rcfile_msg(_("Unable to write ~/.nano_history file, %s"), strerror(errno)); @@ -2937,7 +2937,7 @@ goto come_from; } for (h = replace_history.tail ; h->prev ; h = h->prev) { - nrealloc(h->data, strlen(h->data) + 1); + h->data = nrealloc(h->data, strlen(h->data) + 1); strcat(h->data, "\n"); if (fputs(h->data, hist) == EOF) { rcfile_msg(_("Unable to write ~/.nano_history file, %s"), strerror(errno));