+2018-11-15 Mark Wielaard <mark@klomp.org>
+
+ * eblobjnotetypename.c (ebl_object_note_type_name): Don't update
+ w, t and len unnecessarily.
+
2018-11-12 Mark Wielaard <mark@klomp.org>
* libebl.h (ebl_object_note): Add new argument namesz.
t += w;
len -= w;
if (type == NT_GNU_BUILD_ATTRIBUTE_OPEN)
- w = snprintf (t, len, "OPEN");
+ snprintf (t, len, "OPEN");
else if (type == NT_GNU_BUILD_ATTRIBUTE_FUNC)
- w = snprintf (t, len, "FUNC");
+ snprintf (t, len, "FUNC");
else
- w = snprintf (t, len, "%x", type);
- t += w;
- len -= w;
+ snprintf (t, len, "%x", type);
return buf;
}