# HG changeset patch # User serb # Date 1389368741 -14400 # Node ID 89df6a57f25f28a3ade44333af425b55a16e160d # Parent 7b2fb8d5f6beb1b46f33ea7a754cb6dfde67762c 8029730: Improve audio device additions Reviewed-by: prr, mschoene diff -r 7b2fb8d5f6be -r 89df6a57f25f jdk/src/solaris/native/com/sun/media/sound/PLATFORM_API_SolarisOS_Utils.c --- a/jdk/src/solaris/native/com/sun/media/sound/PLATFORM_API_SolarisOS_Utils.c Tue Apr 15 17:04:40 2014 +0100 +++ b/jdk/src/solaris/native/com/sun/media/sound/PLATFORM_API_SolarisOS_Utils.c Fri Jan 10 19:45:41 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); }