[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03-fyi-fix-errors-bug.patch
From: |
Akim Demaille |
Subject: |
03-fyi-fix-errors-bug.patch |
Date: |
26 Jan 2002 17:23:52 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) |
Grrr. Sometimes I hate C, and hope we were programming using STL.
Hm, on second thought, I *always* hate C.
Index: ChangeLog
from Akim Demaille <address@hidden>
Fix `%nonassoc and eof'.
* src/state.c (errs_dup): Aaaah! The failure was due to bytes
which were not properly copied! Replace
memcpy (res->errs, src->errs, src->nerrs);
with
memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
!!!
* tests/regression.at (%nonassoc and eof): Adjust to newest
Autotest: `.' is not in the PATH.
Index: src/state.c
--- src/state.c Thu, 27 Dec 2001 11:15:14 +0100 akim
+++ src/state.c Sat, 26 Jan 2002 17:10:53 +0100 akim
@@ -61,7 +61,7 @@
errs_dup (errs *src)
{
errs *res = errs_new (src->nerrs);
- memcpy (res->errs, src->errs, src->nerrs);
+ memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
return res;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- 03-fyi-fix-errors-bug.patch,
Akim Demaille <=