Remove sizeof() usage

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-18 17:31:13 +01:00
parent 77dfdd2928
commit c7e821a54a
1 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ complete(Bool reverse)
if(item->match)
{
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;
return;
}
@ -529,7 +529,7 @@ handle_kpress(XKeyEvent *e)
globalconf.text_size += ((int) (text_dst_len / globalconf.text_size)) * CHUNK_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));
redraw();