On Thu, 25 Jul 2002, Thomas Arp wrote: >Hey all, > >A couple of places in the code, there is a redundant check for >validity of a variable. In all cases, the check refers to > >nlen < 0 > >where nlen is a size_t (which is unsigned). Also, as you can see >from the below code, nlen must be initialized to a positive number >(or 0) before this line, as snprintf() always returns a positive >number or 0. It's supposed to be 'int', so I must've messed them up. -- George Greer greerga@circlemud.org -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT