gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1818 - GNUnet/src/applications/fs/ecrs


From: grothoff
Subject: [GNUnet-SVN] r1818 - GNUnet/src/applications/fs/ecrs
Date: Sat, 20 Aug 2005 20:57:48 -0700 (PDT)

Author: grothoff
Date: 2005-08-20 20:57:47 -0700 (Sat, 20 Aug 2005)
New Revision: 1818

Modified:
   GNUnet/src/applications/fs/ecrs/meta.c
Log:
fixing segv

Modified: GNUnet/src/applications/fs/ecrs/meta.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/meta.c      2005-08-21 03:51:54 UTC (rev 
1817)
+++ GNUnet/src/applications/fs/ecrs/meta.c      2005-08-21 03:57:47 UTC (rev 
1818)
@@ -439,11 +439,11 @@
       size++;
     hdr = MALLOC(size);
     hdr->version = htonl(0);
-    hdr->entries = htonl(md->itemCount);
+    hdr->entries = htonl(ic);
     for (i=0;i<ic;i++)
       ((unsigned int*)&hdr[1])[i] = htonl((unsigned int)md->items[i].type);
     pos = sizeof(MetaDataHeader);
-    pos += sizeof(unsigned int) * md->itemCount;
+    pos += sizeof(unsigned int) * ic;
     for (i=0;i<ic;i++) {
       len = strlen(md->items[i].data) + 1;
       memcpy(&((char*)hdr)[pos],





reply via email to

[Prev in Thread] Current Thread [Next in Thread]