diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 18:58:59 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-28 18:58:59 +0000 |
commit | 5e248cc4e37a388aed8b14c88be92c2805de0256 (patch) | |
tree | 1b1e86802f4456188b688102735e3cd9cd256683 /src/htstools.h | |
parent | 473baf7f954e8599a024c35f223e355bfee7a3a0 (diff) |
Rewrite string template formatting to be format-injection proof.
Diffstat (limited to 'src/htstools.h')
-rw-r--r-- | src/htstools.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/htstools.h b/src/htstools.h index 5542682..7198fef 100644 --- a/src/htstools.h +++ b/src/htstools.h @@ -60,7 +60,9 @@ void longfile_to_83(int mode, char *n83, char *save); HTS_INLINE int __rech_tageq(const char *adr, const char *s); HTS_INLINE int __rech_tageqbegdigits(const char *adr, const char *s); HTS_INLINE int rech_tageq_all(const char *adr, const char *s); + int hts_template_format(FILE *const out, const char *format, ...); +int hts_template_format_str(char *buffer, size_t size, const char *format, ...); #define rech_tageq(adr,s) \ ( \ |