Changeset 3424 for pjproject/trunk/pjlib/src/pj/os_info.c
- Timestamp:
- Feb 28, 2011 8:28:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_info.c
r3423 r3424 134 134 ovi.dwOSVersionInfoSize = sizeof(ovi); 135 135 136 if (GetVersion InfoEx(&ovi) == FALSE)136 if (GetVersionEx(&ovi) == FALSE) 137 137 goto get_sdk_info; 138 138 … … 224 224 char tmp[PJ_SYS_INFO_BUFFER_SIZE]; 225 225 char os_ver[20], sdk_ver[20]; 226 int len;227 228 len= pj_ansi_snprintf(tmp, sizeof(tmp),226 int cnt; 227 228 cnt = pj_ansi_snprintf(tmp, sizeof(tmp), 229 229 "%s%s/%s/%s%s", 230 230 si.os_name.ptr, … … 233 233 si.sdk_name.ptr, 234 234 ver_info(si.sdk_ver, sdk_ver)); 235 if ( len > 0 && len <sizeof(tmp)) {235 if (cnt > 0 && cnt < (int)sizeof(tmp)) { 236 236 ALLOC_CP_STR(tmp, info); 237 237 }
Note: See TracChangeset
for help on using the changeset viewer.