projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify mutt_expand_path
[apps/madmutt.git]
/
score.c
diff --git
a/score.c
b/score.c
index
24cad59
..
f782391
100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-7,20
+7,11
@@
* please see the file GPL in the top level source directory.
*/
* please see the file GPL in the top level source directory.
*/
-#if HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <lib-lib/mem.h>
-#include <lib-lib/macros.h>
-#include <lib-lib/buffer.h>
+#include <lib-lib/lib-lib.h>
#include "mutt.h"
#include "sort.h"
#include "mutt.h"
#include "sort.h"
-#include <string.h>
-#include <stdlib.h>
-
typedef struct score_t {
char *str;
pattern_t *pat;
typedef struct score_t {
char *str;
pattern_t *pat;
@@
-64,7
+55,7
@@
int mutt_parse_score (BUFFER * buf, BUFFER * s, unsigned long data,
mutt_extract_token (buf, s, 0);
if (!MoreArgs (s)) {
mutt_extract_token (buf, s, 0);
if (!MoreArgs (s)) {
-
strfcpy (err->data, _("score: too few arguments"), err->dsize
);
+
m_strcpy(err->data, err->dsize, _("score: too few arguments")
);
return (-1);
}
pattern = buf->data;
return (-1);
}
pattern = buf->data;
@@
-72,7
+63,7
@@
int mutt_parse_score (BUFFER * buf, BUFFER * s, unsigned long data,
mutt_extract_token (buf, s, 0);
if (MoreArgs (s)) {
p_delete(&pattern);
mutt_extract_token (buf, s, 0);
if (MoreArgs (s)) {
p_delete(&pattern);
-
strfcpy (err->data, _("score: too many arguments"), err->dsize
);
+
m_strcpy(err->data, err->dsize, _("score: too many arguments")
);
return (-1);
}
return (-1);
}