[telepathy-mission-control/master] Support parameter with longer names
Alberto Mardegan
alberto.mardegan at nokia.com
Sun May 17 23:36:56 PDT 2009
It's not totally unlikely that a parameter name is longer than 64 characters,
especially if it's a dbus_property parameter. So, use the
DBUS_MAXIMUM_NAME_LENGTH macro (currently 255) as a reference.
---
src/mcd-account.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mcd-account.c b/src/mcd-account.c
index 4387aee..23bb7ab 100644
--- a/src/mcd-account.c
+++ b/src/mcd-account.c
@@ -55,7 +55,7 @@
#define DELAY_PROPERTY_CHANGED
-#define MAX_KEY_LENGTH 64
+#define MAX_KEY_LENGTH (DBUS_MAXIMUM_NAME_LENGTH + 6)
#define MC_AVATAR_FILENAME "avatar.bin"
#define MCD_ACCOUNT_PRIV(account) (MCD_ACCOUNT (account)->priv)
--
1.5.6.5
More information about the telepathy-commits
mailing list