Changeset b363d83 for functions.c
- Timestamp:
- Jul 8, 2007, 3:37:43 PM (17 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- be98ba5
- Parents:
- 93f65b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r48609ce rb363d83 3461 3461 char *filename; 3462 3462 3463 filename=owl_ sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);3463 filename=owl_global_get_startupfile(&g); 3464 3464 file=fopen(filename, "a"); 3465 3465 if (!file) { 3466 3466 owl_function_error("Error opening startupfile for new command"); 3467 owl_free(filename);3468 3467 return; 3469 3468 } … … 3471 3470 /* delete earlier copies */ 3472 3471 owl_util_file_deleteline(filename, buff, 1); 3473 owl_free(filename);3474 3472 3475 3473 /* add this line */ … … 3483 3481 { 3484 3482 char *filename; 3485 filename=owl_ sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);3483 filename=owl_global_get_startupfile(&g); 3486 3484 owl_util_file_deleteline(filename, buff, 1); 3487 owl_free(filename);3488 3485 } 3489 3486 … … 3497 3494 3498 3495 if (!filename) { 3499 filename=owl_ sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE);3496 filename=owl_global_get_startupfile(&g); 3500 3497 file=fopen(filename, "r"); 3501 owl_free(filename);3502 3498 } else { 3503 3499 file=fopen(filename, "r");
Note: See TracChangeset
for help on using the changeset viewer.