stpcpy() added to platform windoze

async_key_management
Volker Birk 8 years ago
parent 246568f3b4
commit 4eba0bc7c1

@ -412,7 +412,6 @@ static PEP_STATUS encrypt_PGP_MIME(
if (_a == NULL)
goto enomem;
theend:
return PEP_STATUS_OK;
enomem:
@ -513,7 +512,6 @@ static PEP_STATUS encrypt_PGP_in_pieces(
}
}
theend:
return PEP_STATUS_OK;
enomem:
@ -587,7 +585,6 @@ DYNAMIC_API PEP_STATUS encrypt_message(
}
if (dest_keys_found) {
char *ptext;
char *ctext = NULL;
size_t csize = 0;
@ -1058,7 +1055,6 @@ DYNAMIC_API PEP_STATUS decrypt_message(
import_attached_keys(session, msg);
}
theend:
decorate_message(msg, _keylist, *color);
*dst = msg;

@ -215,6 +215,16 @@ char *strndup(const char *s1, size_t n)
return str;
}
char *stpcpy(char *dst, const char *src)
{
for (;; ++dst, ++src) {
*dst = *src;
if (*dst == 0)
break;
}
return dst;
}
int mkstemp(char *templ)
{
char *pathname = _mktemp(templ);

@ -44,6 +44,7 @@ int mkstemp(char *templ);
#endif
char *strndup(const char *s1, size_t n);
char *stpcpy(char *dst, const char *src);
const char *windoze_local_db(void);
const char *windoze_system_db(void);

Loading…
Cancel
Save