aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-09-13 00:38:28 +0200
committerache <ache@ache.one>2019-09-13 00:38:28 +0200
commit16587c3f503db6b61cf68611bfb84ba27c353730 (patch)
tree5036b509b992550a2a73a6bdc167d074cd3cd8ad
parent2a068b8b4ad763ca46238a61d2ca47f1b6f995dd (diff)
Fix the over the last bug
-rw-r--r--messageWind.c7
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(&currentConv->listSMS[i]) + 1;
- sprintf(con, "echo %d >> /tmp/a", nbLineSMS(&currentConv->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 ) {