gnupg/util (ChangeLog memrchr.c)
cvs user dshaw
cvs at cvs.gnupg.org
Wed Jun 22 21:42:09 CEST 2005
Date: Wednesday, June 22, 2005 @ 22:05:21
Author: dshaw
Path: /cvs/gnupg/gnupg/util
Modified: ChangeLog memrchr.c
* memrchr.c (memrchr): Not all compilers allow initializing based on a
variable that is also being initialized. Noted by Nelson H. F. Beebe.
-----------+
ChangeLog | 6 ++++++
memrchr.c | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
Index: gnupg/util/ChangeLog
diff -u gnupg/util/ChangeLog:1.193 gnupg/util/ChangeLog:1.194
--- gnupg/util/ChangeLog:1.193 Wed Jun 22 06:12:40 2005
+++ gnupg/util/ChangeLog Wed Jun 22 22:05:21 2005
@@ -1,3 +1,9 @@
+2005-06-22 David Shaw <dshaw at jabberwocky.com>
+
+ * memrchr.c (memrchr): Not all compilers allow initializing based
+ on a variable that is also being initialized. Noted by Nelson
+ H. F. Beebe.
+
2005-06-21 David Shaw <dshaw at jabberwocky.com>
* http.c (send_request, http_open, http_open_document): Pass in
Index: gnupg/util/memrchr.c
diff -u gnupg/util/memrchr.c:1.2 gnupg/util/memrchr.c:1.3
--- gnupg/util/memrchr.c:1.2 Tue May 31 10:38:45 2005
+++ gnupg/util/memrchr.c Wed Jun 22 22:05:21 2005
@@ -33,7 +33,9 @@
void *
memrchr(const void *s, int c, size_t n)
{
- const unsigned char *start=s,*end=s+n-1;
+ const unsigned char *start=s,*end=s;
+
+ end+=n-1;
while(end>=start)
{
More information about the Gnupg-commits
mailing list