1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-12 23:10:51 +00:00

[terminal] itrm_queue data must be unsigned char * . Refs #87

This commit is contained in:
Witold Filipczyk 2021-01-17 18:27:13 +01:00
parent ccc7ca3653
commit 7b749dccb4
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ extern "C" {
#define ITRM_IN_QUEUE_SIZE 64
struct itrm_queue {
char *data;
unsigned char *data;
/** The amount of data in the queue, in bytes. This may be
* less than the amount of memory allocated for the buffer;

View File

@ -124,7 +124,7 @@ itrm_queue_event(struct itrm *itrm, char *data, int len)
if (w < len) {
int left = len - w;
char *c = mem_realloc(itrm->out.queue.data,
unsigned char *c = mem_realloc(itrm->out.queue.data,
itrm->out.queue.len + left);
if (!c) {
@ -710,7 +710,7 @@ free_and_return:
* - 0 if the control sequence does not comply with ECMA-48.
* - The length of the control sequence otherwise. */
static inline int
get_esc_code(char *str, int len, char *final_byte,
get_esc_code(unsigned char *str, int len, char *final_byte,
int *first_param_value)
{
const int parameter_pos = 2;