fweimer@redhat.com (Florian Weimer) writes: > + if (tmpbuf != buffer) > + free (tmpbuf); > + tmpbuf = malloc (tmplen); No need to use realloc since nothing should be in the old buffer... LGTM.