diff options
| author | Werner Koch <[email protected]> | 2023-09-26 07:35:25 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2023-09-26 12:17:37 +0000 |
| commit | c91f759bafcae2a19808b642316d1e2447b6073d (patch) | |
| tree | 4c69c2159aa1ccb57897853a1b6bc63138439a49 /common/stringhelp.h | |
| parent | dirmngr: Require gnutls 3.2 (diff) | |
| download | gnupg-c91f759bafcae2a19808b642316d1e2447b6073d.tar.gz gnupg-c91f759bafcae2a19808b642316d1e2447b6073d.zip | |
common: Add gnupg_memstr to replace static versions.
* common/stringhelp.c (gnupg_memstr): New.
* common/mbox-util.c (my_memstr): Remove.
(is_valid_mailbox_mem): Use gnupg_memstr.
* common/recsel.c (my_memstr): Remove.
(recsel_select): Use gnupg_memstr.
Diffstat (limited to 'common/stringhelp.h')
| -rw-r--r-- | common/stringhelp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/stringhelp.h b/common/stringhelp.h index cd185e49a..d93373ec5 100644 --- a/common/stringhelp.h +++ b/common/stringhelp.h @@ -40,6 +40,7 @@ char *has_leading_keyword (const char *string, const char *keyword); const char *memistr (const void *buf, size_t buflen, const char *sub); +const char *gnupg_memstr (const void *buffer, size_t buflen, const char *sub); char *mem2str( char *, const void *, size_t); char *trim_spaces( char *string ); char *ascii_trim_spaces (char *string); |
