Wireshark-commits: [Wireshark-commits] rev 41010: /trunk/epan/dissectors/ /trunk/epan/dissectors/:

Date: Mon, 13 Feb 2012 05:35:21 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=41010

User: guy
Date: 2012/02/12 09:35 PM

Log:
 In a loop of the form
 
 	for (i = 1; i <= N; i++)
 		...
 
 the type of "i" must have, as its maximum value, a value >= the maximum
 value of N; otherwise, if N is equal to the maximum value that fits in
 "i", the loop willnever terminate.  (If that requires "i" to be larger
 than you'd like, do the loop as
 
 	for (i = 0; i < N; i++)
 		...
 
 which doesn't have that problem.)
 
 Clean up the "i = 1" clause's white space in those for loops.

Directory: /trunk/epan/dissectors/
  Changes    Path                  Action
  +14 -12    packet-ieee80211.c    Modified