Changeset 5719f6d in mainline
- Timestamp:
- 2008-07-25T10:26:20Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 61bacde
- Parents:
- 4e4052b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/sysinfo/sysinfo.c
r4e4052b r5719f6d 282 282 } 283 283 284 #define SYSINFO_MAX_LEN 1024 285 284 286 unative_t sys_sysinfo_valid(unative_t ptr, unative_t len) 285 287 { 286 288 char *str; 287 289 sysinfo_rettype_t ret = {0, 0}; 290 291 if (len > SYSINFO_MAX_LEN) 292 return ret.valid; 288 293 str = malloc(len + 1, 0); 289 294 … … 300 305 char *str; 301 306 sysinfo_rettype_t ret = {0, 0}; 307 308 if (len > SYSINFO_MAX_LEN) 309 return ret.val; 302 310 str = malloc(len + 1, 0); 303 311
Note:
See TracChangeset
for help on using the changeset viewer.