1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Merge pull request #3363 from ventaquil/fix-hash-info-output

Increase event buffers sizes
This commit is contained in:
Jens Steube 2022-07-03 18:51:51 +02:00 committed by GitHub
commit 8e200e8eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2798,11 +2798,11 @@ typedef struct hashlist_parse
typedef struct event_ctx
{
char old_buf[MAX_OLD_EVENTS][HCBUFSIZ_SMALL];
char old_buf[MAX_OLD_EVENTS][HCBUFSIZ_LARGE];
size_t old_len[MAX_OLD_EVENTS];
int old_cnt;
char msg_buf[HCBUFSIZ_SMALL];
char msg_buf[HCBUFSIZ_LARGE];
size_t msg_len;
bool msg_newline;

View File

@ -231,7 +231,7 @@ size_t event_log_info (hashcat_ctx_t *hashcat_ctx, const char *fmt, ...)
va_start (ap, fmt);
event_ctx->msg_len = event_log (fmt, ap, event_ctx->msg_buf, HCBUFSIZ_SMALL - 1);
event_ctx->msg_len = event_log (fmt, ap, event_ctx->msg_buf, HCBUFSIZ_LARGE - 1);
va_end (ap);
}