did you try replacing
line.toLocal8Bit().constData()
line.toLocal8Bit().constData()
To copy to clipboard, switch view to plain text mode
by
line.toStdString().c_str()
line.toStdString().c_str()
To copy to clipboard, switch view to plain text mode
Is it still crashing on that line :
char *p1 = strstr(s, "client ") + 7, *p2 = ip;
char *p1 = strstr(s, "client ") + 7, *p2 = ip;
To copy to clipboard, switch view to plain text mode
?
why do you declare
static char ip[1000], s[1000];
static char ip[1000], s[1000];
To copy to clipboard, switch view to plain text mode
as static ?
Bookmarks