Changeset 926:a7126fa6773d for attach.c
Legend:
- Unmodified
- Added
- Removed
-
attach.c
r857 r926 713 713 memset (&s, 0, sizeof (s)); 714 714 if (flags == M_SAVE_APPEND) 715 s.fpout = safe_fopen (path, "a"); 715 s.fpout = fopen (path, "a"); 716 else if (flags == M_SAVE_OVERWRITE) 717 s.fpout = fopen (path, "w"); 716 718 else 717 s.fpout = fopen (path, "w");719 s.fpout = safe_fopen (path, "w"); 718 720 if (s.fpout == NULL) 719 721 { … … 777 779 778 780 if (flags == M_SAVE_APPEND) 779 s.fpout = safe_fopen (path, "a"); 781 s.fpout = fopen (path, "a"); 782 else if (flags == M_SAVE_OVERWRITE) 783 s.fpout = fopen (path, "w"); 780 784 else 781 s.fpout = fopen (path, "w"); 785 s.fpout = safe_fopen (path, "w"); 786 782 787 if (s.fpout == NULL) 783 788 {
