]> granicus.if.org Git - nethack/commitdiff
remove time_t from struct you - follow up bit
authornethack.allison <nethack.allison>
Wed, 19 Dec 2007 03:30:57 +0000 (03:30 +0000)
committernethack.allison <nethack.allison>
Wed, 19 Dec 2007 03:30:57 +0000 (03:30 +0000)
src/restore.c

index c17b34cb7ae53c7ca44561d6c9ba2732d3a13031..dede194856ef814a9fda44a911835c8215fb27db 100644 (file)
@@ -567,6 +567,7 @@ unsigned int *stuckid, *steedid;    /* STEED */
 #endif
        mread(fd, (genericptr_t) &u, sizeof(struct you));
        mread(fd, (genericptr_t) timebuf, 14);
+       timebuf[14] = '\0';
        ubirthday = time_from_yyyymmddhhmmss(timebuf);
 
        set_uasmon();