![]() ![]() | ![]() |
File: [local] / ports / devel / openocd / patches / Attic / patch-src_target_armv7m_c (download)
Revision 1.1.1.1 (vendor branch), Wed May 27 12:11:51 2009 UTC (15 years, 2 months ago) by yason
import |
$OpenBSD$ --- src/target/armv7m.c.orig Fri Jan 16 10:02:25 2009 +++ src/target/armv7m.c Wed May 27 12:24:58 2009 @@ -159,7 +159,7 @@ char *armv7m_exception_string(int number) return "Invalid exception"; if (number < 16) return armv7m_exception_strings[number]; - sprintf(enamebuf, "External Interrupt(%i)", number - 16); + snprintf(enamebuf, sizeof(enamebuf), "External Interrupt(%i)", number - 16); return enamebuf; }