diff options
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index de451f6..b560d62 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -232,7 +232,7 @@ */ #define BEGIN_MPE_LOG \ if (H5_MPEinit_g) { \ - sprintf(p_event_start, "start %s", FUNC); \ + snprintf(p_event_start, sizeof(p_event_start), "start %s", FUNC); \ if (eventa(FUNC) == -1 && eventb(FUNC) == -1) { \ const char *p_color = "red"; \ eventa(FUNC) = MPE_Log_get_event_number(); \ |