diff options
author | ache <ache@ache.one> | 2019-09-13 00:38:28 +0200 |
---|---|---|
committer | ache <ache@ache.one> | 2019-09-13 00:38:28 +0200 |
commit | 16587c3f503db6b61cf68611bfb84ba27c353730 (patch) | |
tree | 5036b509b992550a2a73a6bdc167d074cd3cd8ad | |
parent | HOME / END in conv feature (diff) |
Fix the over the last bug
-rw-r--r-- | messageWind.c | 7 |
1 files changed, 2 insertions, 5 deletions
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 ) { |