Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/xscavenger-1.4.5/src/x.c
Examining data/xscavenger-1.4.5/src/sound.h
Examining data/xscavenger-1.4.5/src/anim.c
Examining data/xscavenger-1.4.5/src/scav.h
Examining data/xscavenger-1.4.5/src/edit.h
Examining data/xscavenger-1.4.5/src/anim.h
Examining data/xscavenger-1.4.5/src/x.h
Examining data/xscavenger-1.4.5/src/names.h
Examining data/xscavenger-1.4.5/src/sound.c
Examining data/xscavenger-1.4.5/src/edit.c
Examining data/xscavenger-1.4.5/src/scav.c

FINAL RESULTS:

data/xscavenger-1.4.5/src/anim.c:1007:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ttt,"%s artwork: %s",descriptions[workingon],
data/xscavenger-1.4.5/src/anim.c:1134:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ttt,"%s/%s/%s",localname,localdirname,gfxnames[workingon]);
data/xscavenger-1.4.5/src/edit.c:348:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ewant,einfo());
data/xscavenger-1.4.5/src/scav.c:297:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temparea,"%s/%s/%s",localname,localdirname,name);
data/xscavenger-1.4.5/src/scav.c:301:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(temparea,"%s/%s",libname,name);
data/xscavenger-1.4.5/src/scav.c:450:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(bakname,"%s.bak",resourcename);
data/xscavenger-1.4.5/src/scav.c:618:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(ttt,"PLAYER:%s",playername);
data/xscavenger-1.4.5/src/scav.c:881:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(topwant,"LEVEL %04d       BEST %05ld  %-18sBONUS %03d00   SCORE %05ld",clevel,bestscore,bestname,time1,score);
data/xscavenger-1.4.5/src/scav.c:1282:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(temp,"%s:%s",gfxnames[num],p);
data/xscavenger-1.4.5/src/scav.c:1303:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(op,ip);
data/xscavenger-1.4.5/src/scav.c:1319:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name2,"%s/%s/%s",localname,localdirname,rcname);
data/xscavenger-1.4.5/src/scav.c:1434:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(libname,LIBNAME);
data/xscavenger-1.4.5/src/scav.c:1435:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(localdirname,LOCALDIRNAME);
data/xscavenger-1.4.5/src/scav.c:1436:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(rcname,RCNAME);
data/xscavenger-1.4.5/src/scav.c:1444:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(localname,p);
data/xscavenger-1.4.5/src/scav.c:1446:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temp,"%s/%s",localname,localdirname);
data/xscavenger-1.4.5/src/scav.c:1459:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(resourcename,"%s/%s/%s",localname,localdirname,LEVELSNAME);
data/xscavenger-1.4.5/src/scav.c:1464:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(temp,"%s/%s",libname,LEVELSNAME);
data/xscavenger-1.4.5/src/scav.c:1499:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str,"%s/%s/%s",localname,localdirname,rcname);
data/xscavenger-1.4.5/src/scav.c:1556:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temp,"%s/%s/%s",localname,localdirname,PLAYERNAME);
data/xscavenger-1.4.5/src/scav.c:2510:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ttt,"PLAYER:%s",playername);
data/xscavenger-1.4.5/src/scav.c:2541:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(ttt,str);
data/xscavenger-1.4.5/src/scav.c:2543:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(ttt,txt);
data/xscavenger-1.4.5/src/scav.c:2550:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(ttt2,"%s# ",ttt);
data/xscavenger-1.4.5/src/scav.c:2584:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	if(ch==10) strcpy(txt,ttt+k);
data/xscavenger-1.4.5/src/scav.c:2585:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ttt2,"%-72s","");
data/xscavenger-1.4.5/src/scav.c:2593:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ttt,"Press %s:",str);
data/xscavenger-1.4.5/src/scav.c:2679:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(temp,"%s/%s/%s",localname,localdirname,PLAYERNAME);
data/xscavenger-1.4.5/src/sound.c:134:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dirlist,"%s/%s,%s",localname,localdirname,libname);
data/xscavenger-1.4.5/src/sound.c:172:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(p2,soundnames[num]);
data/xscavenger-1.4.5/src/scav.c:1438:4:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	p=getenv(ENVHOME);
data/xscavenger-1.4.5/src/scav.c:1551:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	err=getenv(ENVUSER);
data/xscavenger-1.4.5/src/anim.c:57:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *descriptions[4]={
data/xscavenger-1.4.5/src/anim.c:272:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(source,dest,TILEMAX);
data/xscavenger-1.4.5/src/anim.c:1127:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(put,(gfxsets+workingon)->gs_pic+320*line,320);
data/xscavenger-1.4.5/src/edit.c:315:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(temp,"level %04d   l=load w=write spc=try esc=exit ->=inc lev <-=dec lev",clevel);
data/xscavenger-1.4.5/src/scav.c:94:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char libname[256];
data/xscavenger-1.4.5/src/scav.c:95:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char localname[256];
data/xscavenger-1.4.5/src/scav.c:96:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char localdirname[256];
data/xscavenger-1.4.5/src/scav.c:97:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char resourcename[256];
data/xscavenger-1.4.5/src/scav.c:98:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char rcname[256];
data/xscavenger-1.4.5/src/scav.c:115:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char gfxname0[256];
data/xscavenger-1.4.5/src/scav.c:116:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char gfxname1[256];
data/xscavenger-1.4.5/src/scav.c:117:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char gfxname2[256];
data/xscavenger-1.4.5/src/scav.c:118:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char gfxname3[256];
data/xscavenger-1.4.5/src/scav.c:119:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *gfxnames[4]={gfxname0,gfxname1,gfxname2,gfxname3};
data/xscavenger-1.4.5/src/scav.c:298:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ihand=open(temparea,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:302:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ihand=open(temparea,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:405:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	input=open(resourcename,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:426:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buff[4];
data/xscavenger-1.4.5/src/scav.c:439:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char bakname[128];
data/xscavenger-1.4.5/src/scav.c:447:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char copybuff[1024];
data/xscavenger-1.4.5/src/scav.c:451:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	input=open(resourcename,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:535:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(demolevel0,tlevel,180);
data/xscavenger-1.4.5/src/scav.c:799:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(movie+4,bestname,16);
data/xscavenger-1.4.5/src/scav.c:996:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ttt,"SCAVENGED      %05ld\n",score);
data/xscavenger-1.4.5/src/scav.c:998:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ttt,"TIME BONUS     %03d00\n",time1);
data/xscavenger-1.4.5/src/scav.c:1011:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ttt,      "\nFINAL SCORE    %05ld\n",score);
data/xscavenger-1.4.5/src/scav.c:1016:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(ttt,"YOU JUST GOT THE HIGH SCORE FOR LEVEL %04d!!!",clevel);
data/xscavenger-1.4.5/src/scav.c:1023:4:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			bcopy(playername,movie+4,16);
data/xscavenger-1.4.5/src/scav.c:1290:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(picloc,gs->gs_pic,64000);
data/xscavenger-1.4.5/src/scav.c:1291:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(colormap,gs->gs_colormap,768);
data/xscavenger-1.4.5/src/scav.c:1315:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char name2[256];
data/xscavenger-1.4.5/src/scav.c:1320:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file=open(name2,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:1402:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buff[1024];
data/xscavenger-1.4.5/src/scav.c:1404:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	input=open(src,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:1447:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file=open(temp,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:1460:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file=open(resourcename,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:1475:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file=open(temp,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:1479:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(gfxname0,"redbrick.lbm");
data/xscavenger-1.4.5/src/scav.c:1480:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(gfxname1,"regularguy.lbm");
data/xscavenger-1.4.5/src/scav.c:1481:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(gfxname2,"badguy.lbm");
data/xscavenger-1.4.5/src/scav.c:1482:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(gfxname3,"spiralthing.lbm");
data/xscavenger-1.4.5/src/scav.c:1505:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file=fopen(str,"w");
data/xscavenger-1.4.5/src/scav.c:1545:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ilevel=atoi(argv[1]);
data/xscavenger-1.4.5/src/scav.c:1555:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(playername,"anonymous");
data/xscavenger-1.4.5/src/scav.c:1557:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file=open(temp,O_RDONLY);
data/xscavenger-1.4.5/src/scav.c:2591:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char ttt[128];
data/xscavenger-1.4.5/src/scav.c:2608:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(ttt+strlen(ttt),"%x",code);
data/xscavenger-1.4.5/src/scav.c:2805:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(name,"CAP%03d.lbm",i++);
data/xscavenger-1.4.5/src/scav.c:2806:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file=open(name,O_RDONLY);
data/xscavenger-1.4.5/src/scav.h:241:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char libname[256];
data/xscavenger-1.4.5/src/scav.h:242:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char localname[256];
data/xscavenger-1.4.5/src/scav.h:243:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char localdirname[256];
data/xscavenger-1.4.5/src/scav.h:244:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char resourcename[256];
data/xscavenger-1.4.5/src/scav.h:245:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char rcname[256];
data/xscavenger-1.4.5/src/scav.h:262:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char gfxname0[256];
data/xscavenger-1.4.5/src/scav.h:263:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char gfxname1[256];
data/xscavenger-1.4.5/src/scav.h:264:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char gfxname2[256];
data/xscavenger-1.4.5/src/scav.h:265:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char gfxname3[256];
data/xscavenger-1.4.5/src/scav.h:266:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char *gfxnames[4];
data/xscavenger-1.4.5/src/sound.c:19:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char dirlist[512];
data/xscavenger-1.4.5/src/sound.c:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[256];
data/xscavenger-1.4.5/src/sound.c:163:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char name[256],*p1,*p2,ch;
data/xscavenger-1.4.5/src/sound.c:173:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file=open(name,O_RDONLY);
data/xscavenger-1.4.5/src/sound.c:205:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
signed char commands[64],commandlen,com;
data/xscavenger-1.4.5/src/edit.c:302:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i=strlen(from);
data/xscavenger-1.4.5/src/edit.c:316:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i=strlen(temp);
data/xscavenger-1.4.5/src/scav.c:269:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ileft=read(ihand,ibuff,IBUFFLEN);
data/xscavenger-1.4.5/src/scav.c:407:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	got=read(input,buff,8);
data/xscavenger-1.4.5/src/scav.c:413:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	got=read(input,buff,8);
data/xscavenger-1.4.5/src/scav.c:419:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	got=read(input,put,len);
data/xscavenger-1.4.5/src/scav.c:453:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	got=read(input,buff,8);
data/xscavenger-1.4.5/src/scav.c:462:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		got=read(input,buff,4);
data/xscavenger-1.4.5/src/scav.c:493:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(input,copybuff,got) != got) {close(input);close(output);return -200;}
data/xscavenger-1.4.5/src/scav.c:502:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		got=read(input, copybuff, 1024);
data/xscavenger-1.4.5/src/scav.c:975:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ptx=320-8*(strlen(txt)/2);
data/xscavenger-1.4.5/src/scav.c:1322:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	i=read(file,temp,1023);
data/xscavenger-1.4.5/src/scav.c:1414:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len=read(input,buff,1024);
data/xscavenger-1.4.5/src/scav.c:1553:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(playername,err,16);
data/xscavenger-1.4.5/src/scav.c:1560:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(file,playername,16);
data/xscavenger-1.4.5/src/scav.c:2542:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	k=strlen(ttt);
data/xscavenger-1.4.5/src/scav.c:2544:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	j=strlen(txt);
data/xscavenger-1.4.5/src/scav.c:2608:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	sprintf(ttt+strlen(ttt),"%x",code);
data/xscavenger-1.4.5/src/sound.c:190:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int got=read(file,p1,size);
data/xscavenger-1.4.5/src/sound.c:215:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		commandlen=read(soundread,commands,1);
data/xscavenger-1.4.5/src/sound.c:234:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		commandlen=read(soundread,commands,64);
data/xscavenger-1.4.5/src/x.c:574:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	XDrawString(dp,bgframe,copygc,x,y+12,str,strlen(str));

ANALYSIS SUMMARY:

Hits = 118
Lines analyzed = 6122 in approximately 0.14 seconds (42881 lines/second)
Physical Source Lines of Code (SLOC) = 5390
Hits@level = [0]  38 [1]  22 [2]  64 [3]   2 [4]  30 [5]   0
Hits@level+ = [0+] 156 [1+] 118 [2+]  96 [3+]  32 [4+]  30 [5+]   0
Hits/KSLOC@level+ = [0+] 28.9425 [1+] 21.8924 [2+] 17.8108 [3+] 5.93692 [4+] 5.56586 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.