Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal tap.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Olivier Abad <oabad@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Oct 2002 14:45:08 -0500 (CDT)
oabad       2002/10/14 14:45:08 CDT

  Modified files:
    .                    tap.c 
  Log:
  1- We were writing 1 byte past the end of the buffer in register_tap
  (bug found with valgrind) :
    td->name = malloc(strlen(name));
    strcpy(td->name, name);
  
  Replaced with :
    td->name = g_strdup(name);
  
  2 - Use g_malloc instead of malloc (both were used).
  
  Revision  Changes    Path
  1.4       +4 -5      ethereal/tap.c