forked from enlightenment/terminology
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!
This commit is contained in:
parent
a8206c8b03
commit
b140380776
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue