shop bug (minor) in 3.1

From: Thomas Arp (t_arp@stofanet.dk)
Date: 01/28/03


This is taken from read_type_list() in shop.c:

      *(END_OF(buf) - 1) = '\0';

    num = NOTHING;

    if (strncmp(buf, "-1", 4) != 0)
      for (tindex = 0; *item_types[tindex] != '\n'; tindex++)
        if (!strn_cmp(item_types[tindex], buf, strlen(item_types[tindex])))
{

Shouldn't the strncmp line read

    if (strncmp(buf, "-1", 3) != 0)

instead ?

Welcor

--
   +---------------------------------------------------------------+
   | 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/26/03 PDT