use snprintf

This commit is contained in:
Doug MacEachern 2006-09-30 17:14:39 +00:00
parent 6b9e45eebb
commit 66844ca1d8
1 changed files with 4 additions and 2 deletions

View File

@ -2230,7 +2230,9 @@ int sigar_os_sys_info_get(sigar_t *sigar,
SIGAR_SSTRCPY(sysinfo->vendor_code_name, codename); SIGAR_SSTRCPY(sysinfo->vendor_code_name, codename);
sprintf(sysinfo->description, "%s %s", snprintf(sysinfo->description,
sizeof(sysinfo->description),
"%s %s",
sysinfo->vendor_name, sysinfo->vendor_code_name); sysinfo->vendor_name, sysinfo->vendor_code_name);
#else #else
#endif #endif