Changeset e0565005 in mainline for boot/genarch/ofw_tree.c
- Timestamp:
- 2009-08-24T14:41:42Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ed5ad30
- Parents:
- 21d8020
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/genarch/ofw_tree.c
r21d8020 re0565005 35 35 #include <asm.h> 36 36 #include <memstr.h> 37 38 #define MAX_PATH_LEN 25639 37 40 38 static ofw_tree_node_t *ofw_tree_node_alloc(void) … … 101 99 * Get the disambigued name. 102 100 */ 103 static char path[ MAX_PATH_LEN + 1];104 size_t len = ofw_package_to_path(current, path, MAX_PATH_LEN);101 static char path[OFW_TREE_PATH_MAX_LEN + 1]; 102 size_t len = ofw_package_to_path(current, path, OFW_TREE_PATH_MAX_LEN); 105 103 if (len == -1) 106 104 return; … … 168 166 memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN); 169 167 memcpy(property[i].name, name, OFW_TREE_PROPERTY_MAX_NAMELEN); 170 property[i].name[OFW_TREE_PROPERTY_MAX_NAMELEN ] = '\0';168 property[i].name[OFW_TREE_PROPERTY_MAX_NAMELEN - 1] = '\0'; 171 169 172 170 size_t size = ofw_get_proplen(current, name);
Note:
See TracChangeset
for help on using the changeset viewer.