*: move get_sock_lsa and xwrite_str to libbb, use where appropriate
[oweals/busybox.git] / modutils / modutils-24.c
index 451975ab9e4fc1d7bfe02cdcfebf894f0eb846f4..169fe54ae27f425790db2431d94d8e04adae01be 100644 (file)
@@ -3513,7 +3513,7 @@ static void set_tainted(int fd, const char *m_name,
                buf[sizeof(buf)-1] = '\0';
                oldval = strtoul(buf, NULL, 10);
                sprintf(buf, "%d\n", oldval | taint);
-               write(fd, buf, strlen(buf));
+               xwrite_str(fd, buf);
        }
 }