Changeset 2238:6390b65b36b6 for browser.c
Legend:
- Unmodified
- Added
- Removed
-
browser.c
r2237 r2238 177 177 if (folder->ff->st != NULL) 178 178 { 179 strcat (fn, S_ISLNK (folder->ff->st->st_mode) ? "@" : 179 strcat (fn, S_ISLNK (folder->ff->st->st_mode) ? "@" : /* __STRCAT_CHECKED__ */ 180 180 (S_ISDIR (folder->ff->st->st_mode) ? "/" : 181 181 ((folder->ff->st->st_mode & S_IXUSR) != 0 ? "*" : ""))); … … 567 567 { 568 568 getcwd (LastDir, sizeof (LastDir)); 569 strcat (LastDir, "/"); 569 strcat (LastDir, "/"); /* __STRCAT_CHECKED__ */ 570 570 strncat (LastDir, f, i); 571 571 } … … 683 683 { 684 684 if (mutt_strcmp ("..", LastDir + mutt_strlen (LastDir) - 2) == 0) 685 strcat (LastDir, "/.."); 685 strcat (LastDir, "/.."); /* __STRCAT_CHECKED__ */ 686 686 else 687 687 { … … 695 695 LastDir[1] = 0; 696 696 else 697 strcat (LastDir, "/.."); 697 strcat (LastDir, "/.."); /* __STRCAT_CHECKED__ */ 698 698 } 699 699 } … … 701 701 else if (buffy) 702 702 { 703 s printf (LastDir, "%s", state.entry[menu->current].name);703 strfcpy (LastDir, state.entry[menu->current].name, sizeof (LastDir)); 704 704 mutt_expand_path (LastDir, sizeof (LastDir)); 705 705 } … … 727 727 #endif 728 728 else 729 sprintf (LastDir + mutt_strlen (LastDir), "/%s", 730 state.entry[menu->current].name); 729 { 730 char tmp[_POSIX_PATH_MAX]; 731 snprintf (tmp, sizeof (tmp), "%s/%s", LastDir, state.entry[menu->current].name); 732 strfcpy (LastDir, tmp, sizeof (LastDir)); 733 } 731 734 732 735 destroy_state (&state);
