diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-06 18:27:44 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-06 18:27:44 +0100 |
| commit | 92c27bbda9e809683537e5cc48adad0d5c390587 (patch) | |
| tree | 51c1de9d3c50e571d6a3d23857cd4198c0958d2f /src/ot_urlencoded.h | |
| parent | 355c8ae57d582974f4f6a4ba42f635f2253b84a7 (diff) | |
Gives urlencoded_parse a destination bound
Diffstat (limited to 'src/ot_urlencoded.h')
| -rw-r--r-- | src/ot_urlencoded.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ot_urlencoded.h b/src/ot_urlencoded.h index 9882468..053e079 100644 --- a/src/ot_urlencoded.h +++ b/src/ot_urlencoded.h | |||
| @@ -28,7 +28,7 @@ typedef enum { | |||
| 28 | or -1 for parse error | 28 | or -1 for parse error |
| 29 | or -2 for terminator found | 29 | or -2 for terminator found |
| 30 | */ | 30 | */ |
| 31 | ssize_t urlencoded_parse(char **string, char *deststring, SCAN_SEARCHPATH_FLAG flags); | 31 | ssize_t urlencoded_parse(char **string, char *deststring, const char *deststring_end, SCAN_SEARCHPATH_FLAG flags); |
| 32 | 32 | ||
| 33 | /* string in: pointer to source | 33 | /* string in: pointer to source |
| 34 | out: pointer to next scan position | 34 | out: pointer to next scan position |
| @@ -38,7 +38,7 @@ ssize_t urlencoded_parse(char **string, char *deststring, SCAN_SEARCHPATH_FLAG f | |||
| 38 | or -2 for terminator found | 38 | or -2 for terminator found |
| 39 | or -3 for no keyword matched | 39 | or -3 for no keyword matched |
| 40 | */ | 40 | */ |
| 41 | int urlencoded_match_keyword(const ot_keywords *keywords, char **string, SCAN_SEARCHPATH_FLAG flags); | 41 | int urlencoded_match_keyword(const ot_keywords *keywords, char **string, const char *deststring_end, SCAN_SEARCHPATH_FLAG flags); |
| 42 | 42 | ||
| 43 | /* string in: pointer to value of a param=value pair to skip | 43 | /* string in: pointer to value of a param=value pair to skip |
| 44 | out: pointer to next scan position on return | 44 | out: pointer to next scan position on return |
