Bug 1233346: r=ekr a=abillings
authorNils Ohlmeier <drno@ohlmeier.org>
Tue, 29 Dec 2015 20:45:02 -0500
changeset 310555 0ab687772056d6ea268a3a29e8eaebef1bbf9c7f
parent 310554 016411f1d36eb54b0c5c6672bace7b60ddb63dfd
child 310556 c5bef3674a1b217a35198a8c8f084328b99dca77
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersekr, abillings
bugs1233346
milestone45.0a2
Bug 1233346: r=ekr a=abillings
media/mtransport/third_party/nICEr/src/stun/addrs.c
--- a/media/mtransport/third_party/nICEr/src/stun/addrs.c
+++ b/media/mtransport/third_party/nICEr/src/stun/addrs.c
@@ -185,16 +185,18 @@ stun_get_win32_addrs(nr_local_addr addrs
 
     for (tmpAddress = AdapterAddresses; tmpAddress != NULL; tmpAddress = tmpAddress->Next) {
       char *c;
 
       if (tmpAddress->OperStatus != IfOperStatusUp)
         continue;
 
       snprintf(munged_ifname, IFNAMSIZ, "%S%c", tmpAddress->FriendlyName, 0);
+      munged_ifname[IFNAMSIZ-1] = '\0';
+
       /* replace spaces with underscores */
       c = strchr(munged_ifname, ' ');
       while (c != NULL) {
         *c = '_';
          c = strchr(munged_ifname, ' ');
       }
       c = strchr(munged_ifname, '.');
       while (c != NULL) {