From 244cce1b828a6b7a42e9afb37da4787c3f988168 Mon Sep 17 00:00:00 2001 From: nightshad Date: Thu, 20 May 2010 09:23:28 +0000 Subject: [PATCH] Fix some silly mistake. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@586 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/15fc74c1ec88101195a459174ebab8018c1fe611 Author: nightshad Date: 2010-05-20 (Thu, 20 May 2010) ------------------ This commit was generated by Migit --- src/driver/pictureviewer/jpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/pictureviewer/jpeg.cpp b/src/driver/pictureviewer/jpeg.cpp index 52a1badaf..00fe97ff0 100644 --- a/src/driver/pictureviewer/jpeg.cpp +++ b/src/driver/pictureviewer/jpeg.cpp @@ -80,7 +80,7 @@ int fh_jpeg_load_via_server(const char *filename,unsigned char *buffer,int x,int port=atoi(g_settings.picviewer_decode_server_port); printf("Server %s [%d]\n",g_settings.picviewer_decode_server_ip.c_str(),port); - memset((char *) &si_other, sizeof(si_other), 0); + memset((char *) &si_other, 0, sizeof(si_other)); si_other.sin_family = AF_INET; si_other.sin_port = htons(port); if (inet_aton(g_settings.picviewer_decode_server_ip.c_str(),