--- src/bin/psql/input.c Sat Mar 17 00:50:42 2001 +++ src/bin/psql/input.c Thu Apr 26 05:51:22 2001 @@ -139,11 +139,11 @@ home = getenv("HOME"); if (home) { - char *psql_history = (char *) malloc(strlen(home) + 20); + char *psql_history = (char *) malloc(strlen(home) + 26); if (psql_history) { - sprintf(psql_history, "%s/.psql_history", home); + sprintf(psql_history, "%s/.desk/psql_history", home); read_history(psql_history); free(psql_history); } @@ -194,14 +194,14 @@ home = getenv("HOME"); if (home) { - psql_history = (char *) malloc(strlen(home) + 20); + psql_history = (char *) malloc(strlen(home) + 26); if (psql_history) { const char *var = GetVariable(pset.vars, "HISTSIZE"); if (var) stifle_history(atoi(var)); - sprintf(psql_history, "%s/.psql_history", home); + sprintf(psql_history, "%s/.desk/psql_history", home); write_history(psql_history); free(psql_history); }