* src/tools/apinames.c (names_dump): Fix invalid reference.

Problem reported by Guzman Mosqueda, Jose R
<jose.r.guzman.mosqueda@intel.com>.
This commit is contained in:
Werner Lemberg 2015-05-28 10:58:40 +02:00
parent a5e1f6f39b
commit 366b2ea748
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2015-05-28 Werner Lemberg <wl@gnu.org>
* src/tools/apinames.c (names_dump): Fix invalid reference.
Problem reported by Guzman Mosqueda, Jose R
<jose.r.guzman.mosqueda@intel.com>.
2015-05-24 Werner Lemberg <wl@gnu.org>
[truetype] Fix commit from 2015-05-22.

View File

@ -10,7 +10,7 @@
* accepted if you are using GCC for compilation (and probably by
* other compilers too).
*
* Author: David Turner, 2005, 2006, 2008-2013
* Author: David Turner, 2005, 2006, 2008-2013, 2015
*
* This code is explicitly placed into the public domain.
*
@ -156,6 +156,7 @@ names_dump( FILE* out,
case OUTPUT_WATCOM_LBC:
{
const char* dot;
char temp[512];
if ( dll_name == NULL )
@ -169,8 +170,7 @@ names_dump( FILE* out,
dot = strchr( dll_name, '.' );
if ( dot != NULL )
{
char temp[512];
int len = dot - dll_name;
int len = dot - dll_name;
if ( len > (int)( sizeof ( temp ) - 1 ) )