summaryrefslogtreecommitdiff
path: root/utils/tificc/tificc.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/tificc/tificc.c')
-rw-r--r--utils/tificc/tificc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/tificc/tificc.c b/utils/tificc/tificc.c
index a36612d..16a979f 100644
--- a/utils/tificc/tificc.c
+++ b/utils/tificc/tificc.c
@@ -77,8 +77,10 @@ void ConsoleErrorHandler(const char* module, const char* fmt, va_list ap)
{
char e[512] = { '\0' };
- if (module != NULL)
- strcat(strcpy(e, module), ": ");
+ if (module != NULL) {
+ if (strlen(module) < 500)
+ strcat(strcpy(e, module), ": ");
+ }
vsprintf(e+strlen(e), fmt, ap);
strcat(e, ".");