]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3896 --resolve that sizeof was incorrect
authorJeff Lenk <jeff@jefflenk.com>
Fri, 17 Feb 2012 14:50:03 +0000 (08:50 -0600)
committerJeff Lenk <jeff@jefflenk.com>
Fri, 17 Feb 2012 14:50:03 +0000 (08:50 -0600)
libs/sofia-sip/libsofia-sip-ua/tport/tport_logging.c

index 200ca5cb845ef7e65aceb1b3f91b5c6199510192..13eb63b2eb416d993d2f2f90c6c61795f353f079 100644 (file)
@@ -180,7 +180,7 @@ int tport_open_log(tport_master_t *mr, tagi_t *tags)
                 return n;
         }
 
-        memcpy(port, p, sizeof(p));
+        strncpy(port, p, sizeof(port));
                         
         *p = '\0';