diff options
author | kan <kan@FreeBSD.org> | 2010-05-25 04:09:06 +0800 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2010-05-25 04:09:06 +0800 |
commit | cd25288df4ad446295056198afc6a5f0b6c7c152 (patch) | |
tree | ab93cbded1fd2f5f3dd143be58292e44de99bb6e /x11 | |
parent | fdc4104d0e5af3c1d108fa6f26f05eb4a9c46dcc (diff) | |
download | freebsd-ports-gnome-cd25288df4ad446295056198afc6a5f0b6c7c152.tar.gz freebsd-ports-gnome-cd25288df4ad446295056198afc6a5f0b6c7c152.tar.zst freebsd-ports-gnome-cd25288df4ad446295056198afc6a5f0b6c7c152.zip |
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)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/libSM/files/patch-sm_genid.c | 11 |
1 files changed, 11 insertions, 0 deletions
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); + } + |