Author: noodles
Date: 2002/09/08 10:36:19
Basic code cleanup.
{
struct openpgp_publickey *publickey = NULL;
struct openpgp_signedpacket_list *curuid = NULL;
- static char buf[1024];
+ char buf[1024];
buf[0]=0;
if (fetch_key(keyid, &publickey, false) && publickey != NULL) {
if (buf[0] == 0) {
return NULL;
} else {
- return buf;
+ return strdup(buf);
}
}
#endif
{
struct openpgp_publickey *publickey = NULL;
- if (keyid < 0x100000000) {
+ if (keyid < 0x100000000LL) {
fetch_key(keyid, &publickey, false);
keyid = get_keyid(publickey);
free_publickey(publickey);