PennMUSH Community

Changeset 1127

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

7458: width() and bad input

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/CHANGES.182

    r1120 r1127  
    1313 
    1414========================================================================== 
     15 
     16Version 1.8.2 patchlevel 8                     ??? ??, 200? 
     17 
     18Minor changes: 
     19 * 'make versions' now provides some feedback. 
     20 
     21Fixes: 
     22 * width() and height() do not return 0 when set to invalid input. 
     23   By Talvo. 
    1524 
    1625Version 1.8.2 patchlevel 7                     October 6, 2007 
  • 1.8.3/branches/devel/src/bsd.c

    r1124 r1127  
    40444044  if (!*args[0]) 
    40454045    safe_str(T("#-1 FUNCTION REQUIRES ONE ARGUMENT"), buff, bp); 
    4046   else if ((match = lookup_desc(executor, args[0]))
     4046  else if ((match = lookup_desc(executor, args[0])) && match->width > 0
    40474047    safe_integer(match->width, buff, bp); 
    40484048  else if (args[1]) 
     
    40574057  if (!*args[0]) 
    40584058    safe_str(T("#-1 FUNCTION REQUIRES ONE ARGUMENT"), buff, bp); 
    4059   else if ((match = lookup_desc(executor, args[0]))
     4059  else if ((match = lookup_desc(executor, args[0])) && match->height > 0
    40604060    safe_integer(match->height, buff, bp); 
    40614061  else if (args[1])