]> mj.ucw.cz Git - libucw.git/blobdiff - lib/object.c
WORD_TYPES_HIDDEN shouldn't be considered META by default.
[libucw.git] / lib / object.c
index 0a0686540ab36aa3a6cdebfeae6c088e83cf3bf7..d5e68e74dc0312a4653219f87ac1a2b818e4c0d6 100644 (file)
@@ -60,7 +60,7 @@ obj_free(struct odes *o)
 int
 obj_read(struct fastbuf *f, struct odes *o)
 {
-  byte buf[1024];
+  byte buf[4096];
   struct oattr **last = &o->attrs;
   struct oattr *a, *la;
 
@@ -235,6 +235,8 @@ obj_prepend_attr(struct odes *o, uns x, byte *v)
       if (a->attr == x)
        {
          b->same = a;
+         b->next = a->next;
+         a->next = NULL;
          *z = b;
          b->last_same = a->last_same;
          return b;