From 16587c3f503db6b61cf68611bfb84ba27c353730 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 13 Sep 2019 00:38:28 +0200 Subject: Fix the over the last bug --- messageWind.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'messageWind.c') diff --git a/messageWind.c b/messageWind.c index 2c788a5..15efcbd 100644 --- a/messageWind.c +++ b/messageWind.c @@ -23,14 +23,10 @@ void toTheEnd(void) { return; int i = currentConv->nbSMS -1, size = h_WMessage + 1; - char lin[200] = ""; - char con[200] = ""; for(; i > 0 && size >= 0 ; i--,size--) { size -= nbLineSMS(¤tConv->listSMS[i]) + 1; - sprintf(con, "echo %d >> /tmp/a", nbLineSMS(¤tConv->listSMS[i]) + 1); - system(con); - + } if( size > 0 ) firstSMSIndex = 0; @@ -40,6 +36,7 @@ void toTheEnd(void) { // the windows size ... We simply show the begin of the SMS without // the end. (Yeah, fuck this ...) + canAugment = 0; } int nbLineSMS( sms* S ) { -- cgit v1.2.3