Wireshark-commits: [Wireshark-commits] rev 30276: /trunk/epan/ /trunk/epan/: tvbuff.c
Date: Sun, 04 Oct 2009 06:28:59 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=30276

User: krj
Date: 2009/10/03 11:28 PM

Log:
 Use GLibs CLAMP(). The current inlined implementation seems to be wrong:
 
 	} else if (bufsiz > TVB_Z_MAX_BUFSIZ) {
 		bufsiz = TVB_Z_MIN_BUFSIZ;
 	}
 
 This should probably have been 'bufsiz = TVB_Z_MAX_BUFSIZ;'

Directory: /trunk/epan/
  Changes    Path          Action
  +1 -8      tvbuff.c      Modified