mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-21 02:48:02 +00:00
8029730: Improve audio device additions
Reviewed-by: prr, mschoene
This commit is contained in:
parent
d7649dfc7e
commit
8db4bc1298
@ -76,7 +76,7 @@ int addAudioDevice(char* path, AudioDevicePath* adPath, int* count) {
|
||||
adPath[*count].st_ino = statBuf.st_ino;
|
||||
adPath[*count].st_dev = statBuf.st_dev;
|
||||
strncpy(adPath[*count].path, path, MAX_NAME_LENGTH);
|
||||
adPath[*count].path[MAX_NAME_LENGTH] = 0;
|
||||
adPath[*count].path[MAX_NAME_LENGTH - 1] = 0;
|
||||
(*count)++;
|
||||
TRACE1("Added audio device %s\n", path);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user