From cd25288df4ad446295056198afc6a5f0b6c7c152 Mon Sep 17 00:00:00 2001 From: kan Date: Mon, 24 May 2010 20:09:06 +0000 Subject: Fix apparent typo in SmsGenerateClientID which always leaves the first byte of allocated id string uninitialized. If that byte happens to be 0, SmsGenerateClientId appears to return an empty string to the caller, instead of proper GUID in text form. This allows Xfce 4.6.1 to work again after Xorg ports were upgraded to 7.5. Approved by: x11@ (rnoland) --- x11/libSM/files/patch-sm_genid.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 x11/libSM/files/patch-sm_genid.c (limited to 'x11') diff --git a/x11/libSM/files/patch-sm_genid.c b/x11/libSM/files/patch-sm_genid.c new file mode 100644 index 000000000000..a74e4965ca88 --- /dev/null +++ b/x11/libSM/files/patch-sm_genid.c @@ -0,0 +1,11 @@ +--- src/sm_genid.c.orig 2010-05-24 14:21:20.000000000 -0400 ++++ src/sm_genid.c 2010-05-24 14:21:44.000000000 -0400 +@@ -98,7 +98,7 @@ + + if ((id = malloc (strlen (temp) + 2)) != NULL) + { +- id[1] = '2'; ++ id[0] = '2'; + strcpy (id+1, temp); + } + -- cgit