On Thu, Mar 19, 2009 at 03:09:22PM -0400, Bill Meier wrote: > As you know, sizeof is used in *many* places in Wireshark when calling > g_snprint. This was true even before the recent changes. > > Is there any other approach than adding an explicit cast to each and > every usage of sizeof when calling g_snprintf & friends ?? > > Thoughts ??
Stop using fixed length strings so much? :-) Even if we cast them now, I can see people adding sizeof in the future and forgetting to cast it. GLib doesn't appear to have any other solution. Steve ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe