Commit 9ba6ebe0 authored by nedko's avatar nedko
Browse files

Fix incorect sizeof() (jack-session)

The incorrect sizeof resulted in invalid session dirs,
if they were longer than 64 chars, to be passed to clients.

port renames were probably affected as well

The bug was introduced in the jack-session git branch
in d7772d7e. It appeared
in svn trunk when the branch was merged in r4057. The first
released version with this bug is 1.9.7

git-svn-id: 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 389a9a57
......@@ -1510,7 +1510,7 @@ struct JackClientNotification
CheckRes(trans->Read(&fValue1, sizeof(int)));
CheckRes(trans->Read(&fValue2, sizeof(int)));
CheckRes(trans->Read(&fSync, sizeof(int)));
CheckRes(trans->Read(&fMessage, sizeof(fName)));
CheckRes(trans->Read(&fMessage, sizeof(fMessage)));
return 0;
......@@ -1522,7 +1522,7 @@ struct JackClientNotification
CheckRes(trans->Write(&fValue1, sizeof(int)));
CheckRes(trans->Write(&fValue2, sizeof(int)));
CheckRes(trans->Write(&fSync, sizeof(int)));
CheckRes(trans->Write(&fMessage, sizeof(fName)));
CheckRes(trans->Write(&fMessage, sizeof(fMessage)));
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment