[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix for CVS feature OpenBSD sparc64 bus error
From: |
Alexander Taler |
Subject: |
fix for CVS feature OpenBSD sparc64 bus error |
Date: |
Thu, 07 Oct 2004 18:35:35 -0400 |
Hi, I've been plagued by a bus error running the CVS feature
branch on OpenBSD sparc64 for a while now. It was particularly
difficult because a lot of the time it would mess up my debugger,
which gave dwarf errors, or dumped me in the wrong place on break
points, etc. Anyway, I finally tracked it down and fixed it.
It's a type error, (which was even generating a warning) and I'm
guessing it was causing stack corruption.
Alex
Index: src/vers_ts.c
===================================================================
RCS file: /cvs/ccvs/src/vers_ts.c,v
retrieving revision 1.58
diff -u -r1.58 vers_ts.c
--- src/vers_ts.c 4 Sep 2004 23:25:12 -0000 1.58
+++ src/vers_ts.c 7 Oct 2004 22:31:36 -0000
@@ -355,7 +355,7 @@
{
struct tm *tm_p;
char *cp;
- int length;
+ size_t length;
/* We want to use the same timestamp format as is stored in the
st_mtime. For unix (and NT I think) this *must* be universal
--
http://libcvs.cvshome.org/ Access CVS through a library.
PGP: ID: 0x23DC453B FPR: 42D0 66C2 9FF8 553A 373A B819 4C34 93BA 23DC 453B
The purpose of the minutes is not to record events, it is to protect people.
-- Sir Humphrey Appleby
- fix for CVS feature OpenBSD sparc64 bus error,
Alexander Taler <=