Browse Source

Fix crash on jack_internal_client_load without some options set

tags/v1.9.13
falkTX 5 years ago
parent
commit
6bacf6e1db
Signed by: falkTX <falktx@gmail.com> GPG Key ID: 2D3445A829213837
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      common/JackRequest.h

+ 6
- 2
common/JackRequest.h View File

@@ -1063,8 +1063,12 @@ struct JackInternalClientLoadRequest : public JackRequest
memset(fDllName, 0, sizeof(fDllName));
memset(fLoadInitName, 0, sizeof(fLoadInitName));
strncpy(fName, client_name, sizeof(fName)-1);
strncpy(fDllName, so_name, sizeof(fDllName)-1);
strncpy(fLoadInitName, objet_data, sizeof(fLoadInitName)-1);
if (so_name) {
strncpy(fDllName, so_name, sizeof(fDllName)-1);
}
if (objet_data) {
strncpy(fLoadInitName, objet_data, sizeof(fLoadInitName)-1);
}
}

int Read(detail::JackChannelTransactionInterface* trans)


Loading…
Cancel
Save