summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/decode.c3
-rw-r--r--src/html.cc3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c
index 94d3ba3f..1bc54372 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -143,7 +143,8 @@ static Dstr *Decode_charset(Decode *dc, Dstr *input)
int rc = 0;
Dstr *output;
- char *inPtr, *outPtr;
+ inbuf_t *inPtr;
+ char *outPtr;
size_t inLeft, outRoom;
output = dStr_new("");
diff --git a/src/html.cc b/src/html.cc
index 6564a5f9..e2710450 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3844,7 +3844,8 @@ static Dstr *Html_encode_text(iconv_t encoder, Dstr *input)
int rc = 0;
Dstr *output;
const int bufsize = 128;
- char *buffer, *inPtr, *outPtr;
+ inbuf_t *inPtr;
+ char *buffer, *outPtr;
size_t inLeft, outRoom;
bool bad_chars = false;