FS-3896 --resolve that sizeof was incorrect

This commit is contained in:
Jeff Lenk 2012-02-17 08:50:03 -06:00
parent b05ca56adf
commit 5e66db63f1

View 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';