=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/rcstime.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/rcs/rcstime.c 2006/04/26 02:55:13 1.1 +++ src/usr.bin/rcs/rcstime.c 2006/05/29 03:00:12 1.2 @@ -1,4 +1,4 @@ -/* $OpenBSD: rcstime.c,v 1.1 2006/04/26 02:55:13 joris Exp $ */ +/* $OpenBSD: rcstime.c,v 1.2 2006/05/29 03:00:12 niallo Exp $ */ /* * Copyright (c) 2006 Joris Vink * All rights reserved. @@ -41,7 +41,7 @@ now = mktime(&rdp->rd_date); ltb = localtime(&now); ltb->tm_hour += ((int)ltb->tm_gmtoff/3600); - memcpy(tb, ltb, sizeof(struct tm)); + memcpy(tb, ltb, sizeof(*tb)); } else { pos = 0; switch (*tz) { @@ -58,7 +58,7 @@ if ((m = strrchr(tz, ':')) != NULL) *(m++) = '\0'; - memcpy(tb, &rdp->rd_date, sizeof(struct tm)); + memcpy(tb, &rdp->rd_date, sizeof(*tb)); tzone = atoi(h); if ((tzone >= 24) && (tzone <= -24))