提交 07b5e2d8 编写于 作者: S serb

8029730: Improve audio device additions

Reviewed-by: prr, mschoene
上级 ba5bf74a
...@@ -76,7 +76,7 @@ int addAudioDevice(char* path, AudioDevicePath* adPath, int* count) { ...@@ -76,7 +76,7 @@ int addAudioDevice(char* path, AudioDevicePath* adPath, int* count) {
adPath[*count].st_ino = statBuf.st_ino; adPath[*count].st_ino = statBuf.st_ino;
adPath[*count].st_dev = statBuf.st_dev; adPath[*count].st_dev = statBuf.st_dev;
strncpy(adPath[*count].path, path, MAX_NAME_LENGTH); strncpy(adPath[*count].path, path, MAX_NAME_LENGTH);
adPath[*count].path[MAX_NAME_LENGTH] = 0; adPath[*count].path[MAX_NAME_LENGTH - 1] = 0;
(*count)++; (*count)++;
TRACE1("Added audio device %s\n", path); TRACE1("Added audio device %s\n", path);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册