Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mpl/bind/dist/lib/isc/unix shorten name, use snprintf



details:   https://anonhg.NetBSD.org/src/rev/8196155fccce
branches:  trunk
changeset: 449556:8196155fccce
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 10 18:03:40 2019 +0000

description:
shorten name, use snprintf

diffstat:

 external/mpl/bind/dist/lib/isc/unix/socket.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 7e00e88ec68a -r 8196155fccce external/mpl/bind/dist/lib/isc/unix/socket.c
--- a/external/mpl/bind/dist/lib/isc/unix/socket.c      Sun Mar 10 17:51:00 2019 +0000
+++ b/external/mpl/bind/dist/lib/isc/unix/socket.c      Sun Mar 10 18:03:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socket.c,v 1.8 2019/02/24 20:01:32 christos Exp $      */
+/*     $NetBSD: socket.c,v 1.9 2019/03/10 18:03:40 christos Exp $      */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -3956,8 +3956,8 @@
                                                &manager->threads[i],
                                                &manager->threads[i].thread)
                              == ISC_R_SUCCESS);
-               char tname[1024];
-               sprintf(tname, "isc-socket-%d", i);
+               char tname[128];
+               snprintf(tname, sizeof(tname), "sock-%d", i);
                isc_thread_setname(manager->threads[i].thread, tname);
        }
 



Home | Main Index | Thread Index | Old Index