Changeset b363d83 for functions.c


Ignore:
Timestamp:
Jul 8, 2007, 3:37:43 PM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
be98ba5
Parents:
93f65b6
Message:
Adding a -s switch to change the location of the config dir (~/.owl)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r48609ce rb363d83  
    34613461  char *filename;
    34623462
    3463   filename=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);
     3463  filename=owl_global_get_startupfile(&g);
    34643464  file=fopen(filename, "a");
    34653465  if (!file) {
    34663466    owl_function_error("Error opening startupfile for new command");
    3467     owl_free(filename);
    34683467    return;
    34693468  }
     
    34713470  /* delete earlier copies */
    34723471  owl_util_file_deleteline(filename, buff, 1);
    3473   owl_free(filename);
    34743472
    34753473  /* add this line */
     
    34833481{
    34843482  char *filename;
    3485   filename=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);
     3483  filename=owl_global_get_startupfile(&g);
    34863484  owl_util_file_deleteline(filename, buff, 1);
    3487   owl_free(filename);
    34883485}
    34893486
     
    34973494
    34983495  if (!filename) {
    3499     filename=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);
     3496    filename=owl_global_get_startupfile(&g);
    35003497    file=fopen(filename, "r");
    3501     owl_free(filename);
    35023498  } else {
    35033499    file=fopen(filename, "r");
Note: See TracChangeset for help on using the changeset viewer.