C'era una cazzuola nella mailbox
git-svn-id: svn://10.65.10.50/trunk@1514 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f527a2b4b8
commit
8477f33010
@ -1283,6 +1283,8 @@ Se si utilizza spiegarne dettagliatamente il motivo.
|
|||||||
strncpy(s1, (recin + off), len);
|
strncpy(s1, (recin + off), len);
|
||||||
s1[len] = '\0';
|
s1[len] = '\0';
|
||||||
wd = 0;
|
wd = 0;
|
||||||
|
if (s1[0] <= '0')
|
||||||
|
{
|
||||||
for(len = 0; len < LENGTH(s1); len++)
|
for(len = 0; len < LENGTH(s1); len++)
|
||||||
if (isdigit(s1[len])) wd = (wd * 10) + (s1[len] - '0');
|
if (isdigit(s1[len])) wd = (wd * 10) + (s1[len] - '0');
|
||||||
ceditdata(wd, s1);
|
ceditdata(wd, s1);
|
||||||
@ -1291,6 +1293,7 @@ Se si utilizza spiegarne dettagliatamente il motivo.
|
|||||||
s1[4] = s1[6];
|
s1[4] = s1[6];
|
||||||
s1[5] = s1[7];
|
s1[5] = s1[7];
|
||||||
s1[6] = '\0';
|
s1[6] = '\0';
|
||||||
|
}
|
||||||
off = recd->Ky[numkey].FromCh[i];
|
off = recd->Ky[numkey].FromCh[i];
|
||||||
len = recd->Ky[numkey].ToCh[i] -
|
len = recd->Ky[numkey].ToCh[i] -
|
||||||
recd->Ky[numkey].FromCh[i] + 1;
|
recd->Ky[numkey].FromCh[i] + 1;
|
||||||
|
@ -20,7 +20,7 @@ TMessage::TMessage(const char* to, const char* sub,
|
|||||||
_subject = sub;
|
_subject = sub;
|
||||||
_text = text;
|
_text = text;
|
||||||
_from = (from == NULL || *from == '\0') ? main_app().name() : from;
|
_from = (from == NULL || *from == '\0') ? main_app().name() : from;
|
||||||
_flags = 0x00; _number = -1;
|
_flags = 0x00; // _number = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMessage::send()
|
void TMessage::send()
|
||||||
@ -48,7 +48,7 @@ void TMailbox::reread()
|
|||||||
mbox.getline(buf, MAX_TXT_LEN -1);
|
mbox.getline(buf, MAX_TXT_LEN -1);
|
||||||
tmnew->body(buf);
|
tmnew->body(buf);
|
||||||
_msgs.add(tmnew);
|
_msgs.add(tmnew);
|
||||||
tmnew->number(_msgs.items());
|
// tmnew->number(_msgs.items());
|
||||||
n_new++;
|
n_new++;
|
||||||
}
|
}
|
||||||
_lastpos = mbox.tellg();
|
_lastpos = mbox.tellg();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user