Merge branch 'master' of git://gitorious.org/snorenotify/snorenotify
This commit is contained in:
commit
0cf764b72a
|
@ -50,6 +50,23 @@
|
||||||
namespace Snarl {
|
namespace Snarl {
|
||||||
namespace V41 {
|
namespace V41 {
|
||||||
|
|
||||||
|
// workaround for mingw
|
||||||
|
#ifdef __GNUC__
|
||||||
|
inline errno_t strncat_s( char *strDest, size_t bufferSizeInBytes, const char *strSource, size_t count){
|
||||||
|
strncat(strDest,strSource,count);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline errno_t _itoa_s( int value, char *buffer, size_t sizeInCharacters, int radix = 10){
|
||||||
|
itoa(value,buffer,radix);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
inline int _vsnprintf_s( char *buffer, size_t sizeOfBuffer, size_t count, const char *format, va_list argptr ){
|
||||||
|
return vsnprintf(buffer, sizeOfBuffer, format, argptr);
|
||||||
|
}
|
||||||
|
#endif //__GNUC__
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Constructor/Destructor
|
// Constructor/Destructor
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
@ -99,7 +99,7 @@ void SnarlNetworkFrontend::callback(const SnarlNotification &sn,QString msg){
|
||||||
if(sn.clientSocket!=NULL&&!msg.isEmpty()){
|
if(sn.clientSocket!=NULL&&!msg.isEmpty()){
|
||||||
msg+=QString::number(sn.notification->id());
|
msg+=QString::number(sn.notification->id());
|
||||||
qDebug()<<msg;
|
qDebug()<<msg;
|
||||||
sn.clientSocket->write(msg.toAscii()+"\n");
|
sn.clientSocket->write(msg.toAscii()+"\r\n");
|
||||||
sn.clientSocket->flush();
|
sn.clientSocket->flush();
|
||||||
|
|
||||||
if(sn.httpClient){
|
if(sn.httpClient){
|
||||||
|
|
Loading…
Reference in New Issue