From: Nick Bowler Date: Thu, 11 Jun 2009 15:16:47 +0000 (-0400) Subject: Fix another mistake in uobject's property parsing. X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/commitdiff_plain/ecd0067b345646516bbeb51b7976f68c43031c45 Fix another mistake in uobject's property parsing. --- diff --git a/src/uobject.c b/src/uobject.c index 94b5942..111088f 100644 --- a/src/uobject.c +++ b/src/uobject.c @@ -165,20 +165,20 @@ static int deserialize(UObject *o, struct upkg_file *f) rc = upkg_decode_index(&tmp, priv->buf+len, priv->nbuf-len); if (rc == 0) return -1; - len += rc; + len = rc; name = upkg_get_name(f->pkg, tmp); if (!name) { return -1; } else if (strcmp(name, "None") == 0) { - tot_len += rc; + tot_len += len; break; } rc = decode_property(U_OBJECT(o), name, f, len); if (rc == 0) return -1; - len += rc; + len = rc; tot_len += len; }