From c7e821a54a665fcbd5f70ea9d1292d45e1be1269 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 18 Mar 2008 17:31:13 +0100 Subject: [PATCH] Remove sizeof() usage Signed-off-by: Julien Danjou --- awesome-menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awesome-menu.c b/awesome-menu.c index 92f3ab3b4..f42541018 100644 --- a/awesome-menu.c +++ b/awesome-menu.c @@ -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();