PennMUSH Community

Changeset 914

Show
Ignore:
Timestamp:
06/11/07 17:53:41 (1 year ago)
Author:
shawnw
Message:

Fix off-by-one error in parse_objid()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.3/branches/devel/src/parse.c

    r905 r914  
    155155    dbref it; 
    156156    /* A unique id, probably */ 
    157     mush_strncpy(tbuf1, str, (p - str)); 
     157    mush_strncpy(tbuf1, str, (p - str) + 1); 
    158158    it = parse_dbref(tbuf1); 
    159159    if (GoodObject(it)) {