Changeset 107471 in vbox for trunk/src/VBox/Main/src-server/UnattendedScript.cpp
- Timestamp:
- Jan 7, 2025 3:14:01 PM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/UnattendedScript.cpp
r106061 r107471 754 754 pszValue = rstrTmp.assign(mpUnattended->i_getHostname(), 0, mpUnattended->i_getHostname().find(".")).c_str(); 755 755 else if (IS_MATCH("HOSTNAME_WITHOUT_DOMAIN_MAX_15")) 756 pszValue = rstrTmp.assign(mpUnattended->i_getHostname(), 0, RT_MIN(mpUnattended->i_getHostname().find("."), 15)).c_str(); 756 { 757 size_t const idxDot = mpUnattended->i_getHostname().find("."); 758 pszValue = rstrTmp.assign(mpUnattended->i_getHostname(), 0, RT_MIN(idxDot, 15)).c_str(); 759 } 757 760 else if (IS_MATCH("HOSTNAME_DOMAIN")) 758 761 pszValue = rstrTmp.assign(mpUnattended->i_getHostname(), mpUnattended->i_getHostname().find(".") + 1).c_str();
Note:
See TracChangeset
for help on using the changeset viewer.