Browse Source

- bugfix, malloc with correct size

development
art1pirat 2 months ago
committed by Andreas Romeyke
parent
commit
505323a0d0
  1. 2
      src/helper/renderer/check_renderer_ansi.c

2
src/helper/renderer/check_renderer_ansi.c

@ -66,7 +66,7 @@ const char * renderer_ansi ( const retmsg_t * ret, short int is_quiet ) {
res->bufsize = RENDERMAXSIZE;
memset( res->buf, 0, RENDERMAXSIZE);
strbuff_t * tmp;
tmp = malloc( sizeof( tmp ) );
tmp = malloc( sizeof( strbuff_t ) );
if (NULL == tmp) {
exit(could_not_allocate_memory);
}

Loading…
Cancel
Save