projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
gnupgparse.c
diff --git
a/gnupgparse.c
b/gnupgparse.c
index
099755d
..
87cbbbd
100644
(file)
--- a/
gnupgparse.c
+++ b/
gnupgparse.c
@@
-40,6
+40,9
@@
/* for hexval */
#include "mime.h"
/* for hexval */
#include "mime.h"
+#include "lib/mem.h"
+#include "lib/str.h"
+
/****************
* Read the GNUPG keys. For now we read the complete keyring by
* calling gnupg in a special mode.
/****************
* Read the GNUPG keys. For now we read the complete keyring by
* calling gnupg in a special mode.
@@
-92,7
+95,7
@@
static void fix_uid (char *uid)
memcpy (uid, buf, ob - buf);
uid[ob - buf] = '\0';
}
memcpy (uid, buf, ob - buf);
uid[ob - buf] = '\0';
}
- else if (ob - buf == n && (buf[n] = 0, strlen (buf) < n))
+ else if (ob - buf == n && (buf[n] = 0,
mutt_
strlen (buf) < n))
memcpy (uid, buf, n);
}
FREE (&buf);
memcpy (uid, buf, n);
}
FREE (&buf);