Changeset 35729 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jan 27, 2011 10:09:34 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69676
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/xml.cpp
r35128 r35729 1098 1098 AttributeNode* ElementNode::setAttribute(const char *pcszName, int32_t i) 1099 1099 { 1100 char szValue[1 0];1100 char szValue[12]; // negative sign + 10 digits + \0 1101 1101 RTStrPrintf(szValue, sizeof(szValue), "%RI32", i); 1102 1102 AttributeNode *p = setAttribute(pcszName, szValue); … … 1117 1117 AttributeNode* ElementNode::setAttribute(const char *pcszName, uint32_t u) 1118 1118 { 1119 char szValue[1 0];1119 char szValue[11]; // 10 digits + \0 1120 1120 RTStrPrintf(szValue, sizeof(szValue), "%RU32", u); 1121 1121 AttributeNode *p = setAttribute(pcszName, szValue); … … 1136 1136 AttributeNode* ElementNode::setAttribute(const char *pcszName, int64_t i) 1137 1137 { 1138 char szValue[2 0];1138 char szValue[21]; // negative sign + 19 digits + \0 1139 1139 RTStrPrintf(szValue, sizeof(szValue), "%RI64", i); 1140 1140 AttributeNode *p = setAttribute(pcszName, szValue); … … 1155 1155 AttributeNode* ElementNode::setAttribute(const char *pcszName, uint64_t u) 1156 1156 { 1157 char szValue[2 0];1157 char szValue[21]; // 20 digits + \0 1158 1158 RTStrPrintf(szValue, sizeof(szValue), "%RU64", u); 1159 1159 AttributeNode *p = setAttribute(pcszName, szValue); … … 1174 1174 AttributeNode* ElementNode::setAttributeHex(const char *pcszName, uint32_t u) 1175 1175 { 1176 char szValue[1 0];1176 char szValue[11]; // "0x" + 8 digits + \0 1177 1177 RTStrPrintf(szValue, sizeof(szValue), "0x%RX32", u); 1178 1178 AttributeNode *p = setAttribute(pcszName, szValue);
Note:
See TracChangeset
for help on using the changeset viewer.