Changeset 557:2c8523f9a1c8 for browser.c
Legend:
- Unmodified
- Added
- Removed
-
browser.c
r541 r557 86 86 struct folder_file *pb = (struct folder_file *) b; 87 87 88 int r = strcmp (pa->name, pb->name);88 int r = mutt_strcmp (pa->name, pb->name); 89 89 90 90 return ((BrowserSort & SORT_REVERSE) ? -r : r); … … 359 359 while ((de = readdir (dp)) != NULL) 360 360 { 361 if ( strcmp (de->d_name, ".") == 0)361 if (mutt_strcmp (de->d_name, ".") == 0) 362 362 continue; /* we don't need . */ 363 363 364 if (prefix && *prefix && strncmp (prefix, de->d_name,strlen (prefix)) != 0)364 if (prefix && *prefix && mutt_strncmp (prefix, de->d_name, mutt_strlen (prefix)) != 0) 365 365 continue; 366 366 if (!((regexec (Mask.rx, de->d_name, 0, NULL, 0) == 0) ^ Mask.not)) … … 376 376 377 377 tmp = Incoming; 378 while (tmp && strcmp (buffer, NONULL(tmp->path)))378 while (tmp && mutt_strcmp (buffer, tmp->path)) 379 379 tmp = tmp->next; 380 380 add_folder (menu, state, de->d_name, &s, (tmp) ? tmp->new : 0); … … 473 473 { 474 474 mutt_expand_path (f, flen); 475 for (i = strlen (f) - 1; i > 0 && f[i] != '/' ; i--);475 for (i = mutt_strlen (f) - 1; i > 0 && f[i] != '/' ; i--); 476 476 if (i > 0) 477 477 { … … 560 560 strfcpy (OldLastDir, LastDir, sizeof (OldLastDir)); 561 561 562 if ( strcmp (state.entry[menu->current].name, "..") == 0)562 if (mutt_strcmp (state.entry[menu->current].name, "..") == 0) 563 563 { 564 if ( strcmp ("..", LastDir +strlen (LastDir) - 2) == 0)564 if (mutt_strcmp ("..", LastDir + mutt_strlen (LastDir) - 2) == 0) 565 565 strcat (LastDir, "/.."); 566 566 else … … 585 585 } 586 586 else 587 sprintf (LastDir + strlen (LastDir), "/%s",587 sprintf (LastDir + mutt_strlen (LastDir), "/%s", 588 588 state.entry[menu->current].name); 589 589 … … 637 637 strfcpy (buf, LastDir, sizeof (buf)); 638 638 {/* add '/' at the end of the directory name */ 639 int len= strlen(LastDir);639 int len=mutt_strlen(LastDir); 640 640 if (sizeof (buf) > len) 641 641 buf[len]='/';
