* Sherlock Library -- Object Functions
*
* (c) 1997--2001 Martin Mares <mj@ucw.cz>
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
*/
#include "lib/lib.h"
int
obj_read(struct fastbuf *f, struct odes *o)
{
- byte buf[1024];
+ byte buf[4096];
struct oattr **last = &o->attrs;
struct oattr *a, *la;
{
bputc(f, a->attr);
for(z = b->val; *z; z++)
- if (*z >= ' ')
+ if (*z >= ' ' || *z == '\t')
bputc(f, *z);
else
{
if (a->attr == x)
{
b->same = a;
+ b->next = a->next;
+ a->next = NULL;
*z = b;
b->last_same = a->last_same;
return b;