mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[terminal] itrm_queue data must be unsigned char * . Refs #87
This commit is contained in:
parent
ccc7ca3653
commit
7b749dccb4
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user