OSDN Git Service

Removed seed_rand() function. Seeding will now be done automatically, if needed.
[mutilities/MUtilities.git] / src / IPCChannel.cpp
index eeb8819..e8d23e8 100644 (file)
@@ -1,6 +1,6 @@
 ///////////////////////////////////////////////////////////////////////////////
 // MuldeR's Utilities for Qt
-// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2016 LoRd_MuldeR <MuldeR2@GMX.de>
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -346,7 +346,7 @@ bool MUtils::IPCChannel::send(const quint32 &command, const quint32 &flags, cons
                                const quint32 param_count = qMin(MAX_PARAM_CNT, (quint32)params.count());
                                for(quint32 i = 0; i < param_count; i++)
                                {
-                                       strncpy_s(ipc_msg.payload.params.values[i], MAX_PARAM_LEN, MUTILS_UTF8(params[i]), _TRUNCATE);
+                                       strncpy_s(ipc_msg.payload.params.values[i], MAX_PARAM_LEN, MUTILS_UTF8(params[i].trimmed()), _TRUNCATE);
                                }
                                ipc_msg.payload.params.count = param_count;
                        }