projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop str_[n]cat.
[apps/madmutt.git]
/
hcache.c
diff --git
a/hcache.c
b/hcache.c
index
e513c76
..
877afd0
100644
(file)
--- a/
hcache.c
+++ b/
hcache.c
@@
-657,20
+657,20
@@
mutt_hcache_fetch(void *db, const char *filename,
{
struct header_cache *h = db;
char path[_POSIX_PATH_MAX];
{
struct header_cache *h = db;
char path[_POSIX_PATH_MAX];
- int ksize;
+ int ksize
, len
;
char *data = NULL;
if (!h)
return NULL;
m_strcpy(path, sizeof(path), h->folder);
char *data = NULL;
if (!h)
return NULL;
m_strcpy(path, sizeof(path), h->folder);
-
str_cat(path, sizeof
(path), filename);
+
m_strcat(path, sizeof
(path), filename);
ksize = strlen(h->folder) + keylen(path + strlen(h->folder));
data = vlget(h->db, path, ksize, NULL);
ksize = strlen(h->folder) + keylen(path + strlen(h->folder));
data = vlget(h->db, path, ksize, NULL);
- if (!
crc32_matches(data, h->crc))
+ if (!crc32_matches(data, h->crc))
{
p_delete(&data);
return NULL;
{
p_delete(&data);
return NULL;
@@
-694,7
+694,7
@@
mutt_hcache_store(void *db, const char *filename, HEADER * header,
return -1;
m_strcpy(path, sizeof(path), h->folder);
return -1;
m_strcpy(path, sizeof(path), h->folder);
-
str_cat(path, sizeof
(path), filename);
+
m_strcat(path, sizeof
(path), filename);
ksize = strlen(h->folder) + keylen(path + strlen(h->folder));
ksize = strlen(h->folder) + keylen(path + strlen(h->folder));
@@
-719,7
+719,7
@@
mutt_hcache_delete(void *db, const char *filename,
return -1;
m_strcpy(path, sizeof(path), h->folder);
return -1;
m_strcpy(path, sizeof(path), h->folder);
-
str_cat(path, sizeof
(path), filename);
+
m_strcat(path, sizeof
(path), filename);
ksize = strlen(h->folder) + keylen(path + strlen(h->folder));
ksize = strlen(h->folder) + keylen(path + strlen(h->folder));