Use xrealloc instead of if(ptr) ptr = xmalloc().
[tinc] / src / solaris /
drwxr-xr-x   ..
-rw-r--r-- 4407 device.c