PennMUSH Community

Changeset 1160

Show
Ignore:
Timestamp:
11/22/07 12:57:23 (11 months ago)
Author:
shawnw
Message:

Fixed array underflow buglet

Files:

Legend:

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

    r1118 r1160  
    1313 
    1414========================================================================== 
     15 
     16Version 1.8.2 patchlevel 8                     ??? ??, 200? 
     17 
     18Fixes: 
     19 * Array underflow bug detected by running under valgrind. 
    1520 
    1621Version 1.8.2 patchlevel 7                     October 6, 2007 
  • 1.8.3/trunk/src/strutil.c

    r1117 r1160  
    10181018  for (p = str; *p; p++) ; 
    10191019  /* And trailing */ 
    1020   for (p--; (*p == ' ') && (p > str); p--) ; 
     1020  for (p--; p > str && *p == ' '; p--) ; 
    10211021  p++; 
    10221022  *p = '\0';