[telepathy-mission-control-5.16] telepathy-mission-control: Fix string max size calculation.
George Kiagiadakis
gkiagia at kemper.freedesktop.org
Sat Jan 28 11:43:16 UTC 2017
Module: telepathy-mission-control
Branch: telepathy-mission-control-5.16
Commit: 19f10ec2a59cadd4c59d6bc3147c612007c1c615
URL: http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=19f10ec2a59cadd4c59d6bc3147c612007c1c615
Author: Tiago Salem Herrmann <tiagosh at gmail.com>
Date: Wed Jan 25 15:30:04 2017 -0200
Fix string max size calculation.
Reviewed-by: George Kiagiadakis <gkiagia at tolabaki.gr>
https://github.com/TelepathyIM/telepathy-mission-control/pull/1
---
src/mcd-connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index e225da2..fe7029f 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1396,7 +1396,7 @@ translate_g_error (GQuark domain,
if (p != NULL)
{
- gchar *tmp = g_strndup (message, message - p);
+ gchar *tmp = g_strndup (message, p - message);
/* The syntactic restrictions for error names are the same
* as for interface names. */
More information about the telepathy-commits
mailing list