Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37904969
en ru br
ALT Linux repos
S:6.0.0-alt7.1

Group :: Development/Tools
RPM: papi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: papi-6.0.0-alt-fix-mips-warning.patch
Download


--- a/papi/src/libpfm4/lib/pfmlib_mips.c
+++ b/papi/src/libpfm4/lib/pfmlib_mips.c
@@ -144,7 +144,7 @@ pfm_mips_detect(void *this)
 	if (strstr(buffer,"MIPS") == NULL)
 	  return PFM_ERR_NOTSUPP;
 
-	strncpy(pfm_mips_cfg.model,buffer,strlen(buffer));
+	strlcpy(pfm_mips_cfg.model,buffer,sizeof(pfm_mips_cfg.model));
 
 /*	ret = pfmlib_getcpuinfo_attr("CPU implementer", buffer, sizeof(buffer));
 	if (ret == -1)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin