- Timestamp:
- Mar 28, 2009, 5:00:34 PM (16 years ago)
- Branches:
- owl
- Children:
- 4de643d
- Parents:
- 5189631
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
util.c
rfe67f1f rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <stdlib.h> … … 346 370 } 347 371 372 owl_free(curarg); 373 348 374 /* check for unbalanced quotes */ 349 375 if (quote!='\0') { … … 648 674 owl_function_error("Error opening file %s for writing", backupfilename); 649 675 owl_free(backupfilename); 676 fclose(file); 650 677 return; 651 678 } 652 owl_free(backupfilename);653 679 } 654 680 … … 689 715 owl_function_error("WARNING: Error opening %s for writing. Use %s to restore.", filename, backupfilename); 690 716 owl_function_beep(); 691 owl_free(line); 692 return; 693 } 694 695 fputs(text, file); 696 fclose(file); 717 } else { 718 fputs(text, file); 719 fclose(file); 720 } 721 722 if (backup) 723 owl_free(backupfilename); 724 owl_free(text); 697 725 } 698 726
Note: See TracChangeset
for help on using the changeset viewer.