Remove sizeof() usage
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
77dfdd2928
commit
c7e821a54a
|
@ -319,7 +319,7 @@ complete(Bool reverse)
|
||||||
if(item->match)
|
if(item->match)
|
||||||
{
|
{
|
||||||
word = get_last_word(globalconf.text);
|
word = get_last_word(globalconf.text);
|
||||||
a_strcpy(word, sizeof(globalconf.text) - (word - globalconf.text), item->data);
|
a_strcpy(word, globalconf.text_size - (word - globalconf.text), item->data);
|
||||||
globalconf.item_selected = item;
|
globalconf.item_selected = item;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -529,7 +529,7 @@ handle_kpress(XKeyEvent *e)
|
||||||
globalconf.text_size += ((int) (text_dst_len / globalconf.text_size)) * CHUNK_SIZE;
|
globalconf.text_size += ((int) (text_dst_len / globalconf.text_size)) * CHUNK_SIZE;
|
||||||
p_realloc(&globalconf.text, globalconf.text_size);
|
p_realloc(&globalconf.text, globalconf.text_size);
|
||||||
}
|
}
|
||||||
a_strncat(globalconf.text, sizeof(globalconf.text), buf, num);
|
a_strncat(globalconf.text, globalconf.text_size, buf, num);
|
||||||
}
|
}
|
||||||
compute_match(get_last_word(globalconf.text));
|
compute_match(get_last_word(globalconf.text));
|
||||||
redraw();
|
redraw();
|
||||||
|
|
Loading…
Reference in New Issue