* special case to handle when there is no filepart yet.
* find the first subscribed newsgroup
*/
- if ((len = mutt_strlen (filepart)) == 0) {
+ if ((len = str_len (filepart)) == 0) {
for (; l; l = l->next) {
NNTP_DATA *data = (NNTP_DATA *) l->data;
NNTP_DATA *data = (NNTP_DATA *) l->data;
if (data && data->subscribed &&
- safe_strncmp (data->group, filepart, len) == 0) {
+ str_ncmp (data->group, filepart, len) == 0) {
if (init) {
for (i = 0; filepart[i] && data->group[i]; i++) {
if (filepart[i] != data->group[i]) {
* special case to handle when there is no filepart yet. find the first
* file/directory which is not ``.'' or ``..''
*/
- if ((len = mutt_strlen (filepart)) == 0) {
+ if ((len = str_len (filepart)) == 0) {
while ((de = readdir (dirp)) != NULL) {
- if (mutt_strcmp (".", de->d_name) != 0
- && mutt_strcmp ("..", de->d_name) != 0) {
+ if (str_cmp (".", de->d_name) != 0
+ && str_cmp ("..", de->d_name) != 0) {
strfcpy (filepart, de->d_name, sizeof (filepart));
init++;
break;
}
while ((de = readdir (dirp)) != NULL) {
- if (safe_strncmp (de->d_name, filepart, len) == 0) {
+ if (str_ncmp (de->d_name, filepart, len) == 0) {
if (init) {
for (i = 0; filepart[i] && de->d_name[i]; i++) {
if (filepart[i] != de->d_name[i]) {
/* check to see if it is a directory */
if (dirpart[0]) {
strfcpy (buf, exp_dirpart, sizeof (buf));
- strfcpy (buf + mutt_strlen (buf), "/", sizeof (buf) - mutt_strlen (buf));
+ strfcpy (buf + str_len (buf), "/", sizeof (buf) - str_len (buf));
}
else
buf[0] = 0;
- strfcpy (buf + mutt_strlen (buf), filepart, sizeof (buf) - mutt_strlen (buf));
+ strfcpy (buf + str_len (buf), filepart, sizeof (buf) - str_len (buf));
if (stat (buf, &st) != -1 && (st.st_mode & S_IFDIR))
- strfcpy (filepart + mutt_strlen (filepart), "/",
- sizeof (filepart) - mutt_strlen (filepart));
+ strfcpy (filepart + str_len (filepart), "/",
+ sizeof (filepart) - str_len (filepart));
init = 1;
}
}
if (dirpart[0]) {
strfcpy (s, dirpart, slen);
- if (mutt_strcmp ("/", dirpart) != 0 && dirpart[0] != '='
+ if (str_cmp ("/", dirpart) != 0 && dirpart[0] != '='
&& dirpart[0] != '+')
- strfcpy (s + mutt_strlen (s), "/", slen - mutt_strlen (s));
- strfcpy (s + mutt_strlen (s), filepart, slen - mutt_strlen (s));
+ strfcpy (s + str_len (s), "/", slen - str_len (s));
+ strfcpy (s + str_len (s), filepart, slen - str_len (s));
}
else
strfcpy (s, filepart, slen);