zehortigoza pushed a commit to branch master.
commit b140380776b758d3d8c1682896787e4b5291fd5a
Author: José Roberto de Souza <[email protected]>
Date: Fri Sep 6 17:41:24 2013 -0300
Avoid crash when socket address lenght is bigger than 126
Here my socket address:
:0.0.unix:abstract=/tmp/dbus-30Xo0YvOro,guid=c12ee38be195441e0b64c7ff5208e716.383c17da53f7fc81db94ac5f5171b40b-1376315157.910552-1882544957.=unknown=.@unknown@.!unknown!
---
src/bin/ipc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/bin/ipc.c b/src/bin/ipc.c
index 75719ab..8a4f12d 100644
--- a/src/bin/ipc.c
+++ b/src/bin/ipc.c
@@ -38,7 +38,8 @@ _ipc_hash_get(void)
{
char buf[1024], hash[64];
const char *disp, *session, *xdg_session, *xdg_id, *xdg_seat, *xdg_vt;
- char *s, i;
+ char *s;
+ unsigned int i;
unsigned char c1, c2;
/* dumb stoopid hash - i'm feeling lazy */
--
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk