[ndctl PATCH] ndctl, sysfs: null terminate buffer on error