Mercurial > hg > release > icedtea7-forest-2.4 > jdk
changeset 7276:9aa3938dd1cd
8029730: Improve audio device additions
Reviewed-by: prr, mschoene
author | serb |
---|---|
date | Fri, 10 Jan 2014 21:20:55 +0400 |
parents | a6ec20a1aa89 |
children | 476d1bddaa32 |
files | src/solaris/native/com/sun/media/sound/PLATFORM_API_SolarisOS_Utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/solaris/native/com/sun/media/sound/PLATFORM_API_SolarisOS_Utils.c Mon Dec 23 15:33:11 2013 +0100 +++ b/src/solaris/native/com/sun/media/sound/PLATFORM_API_SolarisOS_Utils.c Fri Jan 10 21:20:55 2014 +0400 @@ -76,7 +76,7 @@ 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); }