{NULL, OP_NULL}
};
-static int mutt_extract_path (char *filename, char *path)
+static int mutt_extract_path (char *filename, char *path, ssize_t pathlen)
{
char *tmp = p_new(char, _POSIX_PATH_MAX);
char *help_ptr;
if (*filename == '/') {
*help_ptr++ = *filename++;
*help_ptr++ = '\0';
- strcat (path, tmp);
+ m_strcat(path, pathlen, tmp);
help_ptr = tmp;
}
*help_ptr++ = *filename++;
return -1;
}
else {
- mutt_extract_path (buf, path);
+ mutt_extract_path (buf, path, sizeof(path));
m_strcpy(LastSaveFolder, sizeof(LastSaveFolder), path);
}
{
ATTACHPTR **idx = *idxp;
-#if 0
- int old_optweed = option (OPTWEED);
-
- set_option (OPTWEED);
-#endif
-
do {
switch (op) {
case OP_DISPLAY_HEADERS:
}
while (op != OP_NULL);
-#if 0
- if (option (OPTWEED) != old_optweed)
- toggle_option (OPTWEED);
-#endif
return op;
}