PennMUSH Community

Changeset 1126

Show
Ignore:
Timestamp:
10/05/07 20:18:33 (1 year ago)
Author:
shawnw
Message:

7458: width() and bad input

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.2/trunk/CHANGES.182

    r1123 r1126  
    1919 * 'make versions' now provides some feedback. 
    2020 
     21Fixes: 
     22 * width() and height() do not return 0 when set to invalid input. 
     23   By Talvo. 
    2124 
    2225Version 1.8.2 patchlevel 7                     October 6, 2007 
  • 1.8.2/trunk/src/bsd.c

    r1100 r1126  
    42644264  if (!*args[0]) 
    42654265    safe_str(T("#-1 FUNCTION REQUIRES ONE ARGUMENT"), buff, bp); 
    4266   else if ((match = lookup_desc(executor, args[0]))
     4266  else if ((match = lookup_desc(executor, args[0])) && match->width > 0
    42674267    safe_integer(match->width, buff, bp); 
    42684268  else if (args[1]) 
     
    42774277  if (!*args[0]) 
    42784278    safe_str(T("#-1 FUNCTION REQUIRES ONE ARGUMENT"), buff, bp); 
    4279   else if ((match = lookup_desc(executor, args[0]))
     4279  else if ((match = lookup_desc(executor, args[0])) && match->height > 0
    42804280    safe_integer(match->height, buff, bp); 
    42814281  else if (args[1])