aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tcp_subr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tcp_subr.c b/src/tcp_subr.c
index 7832b14..a699117 100644
--- a/src/tcp_subr.c
+++ b/src/tcp_subr.c
@@ -965,9 +965,8 @@ int tcp_ctl(struct socket *so)
}
}
}
- sb->sb_cc =
- snprintf(sb->sb_wptr, sb->sb_datalen - (sb->sb_wptr - sb->sb_data),
- "Error: No application configured.\r\n");
+ sb->sb_cc = slirp_fmt(sb->sb_wptr, sb->sb_datalen - (sb->sb_wptr - sb->sb_data),
+ "Error: No application configured.\r\n");
sb->sb_wptr += sb->sb_cc;
return 0;
}