--- src/shell.c +++ src/shell.c @@ -1126,7 +1126,7 @@ /* ** Read input from the file given by sqliterc_override. Or if that -** parameter is NULL, take input from ~/.sqliterc +** parameter is NULL, take input from ~/.desk/sqliterc */ static void process_sqliterc( struct callback_data *p, /* Configuration data */ @@ -1143,12 +1143,12 @@ fprintf(stderr,"%s: cannot locate your home directory!\n", Argv0); return; } - zBuf = malloc(strlen(home_dir) + 15); + zBuf = malloc(strlen(home_dir) + 20); if( zBuf==0 ){ fprintf(stderr,"%s: out of memory!\n", Argv0); exit(1); } - sprintf(zBuf,"%s/.sqliterc",home_dir); + sprintf(zBuf,"%s/.desk/sqliterc",home_dir); free(home_dir); sqliterc = (const char*)zBuf; } @@ -1262,8 +1262,8 @@ } /* Process the initialization file if there is one. If no -init option - ** is given on the command line, look for a file named ~/.sqliterc and - ** try to process it. + ** is given on the command line, look for a file named ~/.desk/sqliterc + ** and try to process it. */ process_sqliterc(&data,zInitFile); @@ -1335,8 +1335,8 @@ sqlite_version ); zHome = find_home_dir(); - if( zHome && (zHistory = malloc(strlen(zHome)+20))!=0 ){ - sprintf(zHistory,"%s/.sqlite_history", zHome); + if( zHome && (zHistory = malloc(strlen(zHome)+25))!=0 ){ + sprintf(zHistory,"%s/.desk/sqlite_history", zHome); } if( zHistory ) read_history(zHistory); process_input(&data, 0);