Merge branch 'master' of git://gitorious.org/snorenotify/snorenotify

This commit is contained in:
Patrick von Reth 2011-01-02 01:48:04 +01:00
commit 0cf764b72a
2 changed files with 18 additions and 1 deletions

View File

@ -50,6 +50,23 @@
namespace Snarl {
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
//-----------------------------------------------------------------------------

View File

@ -99,7 +99,7 @@ void SnarlNetworkFrontend::callback(const SnarlNotification &sn,QString msg){
if(sn.clientSocket!=NULL&&!msg.isEmpty()){
msg+=QString::number(sn.notification->id());
qDebug()<<msg;
sn.clientSocket->write(msg.toAscii()+"\n");
sn.clientSocket->write(msg.toAscii()+"\r\n");
sn.clientSocket->flush();
if(sn.httpClient){