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/zatacka-0.1.8/src/SDL_prim.c
Examining data/zatacka-0.1.8/src/SDL_prim.h
Examining data/zatacka-0.1.8/src/fx.cpp
Examining data/zatacka-0.1.8/src/fx.h
Examining data/zatacka-0.1.8/src/main.cpp

FINAL RESULTS:

data/zatacka-0.1.8/src/fx.cpp:107:3:  [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(tmppath,bgpath);
data/zatacka-0.1.8/src/fx.cpp:326: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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:329: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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:333: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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:374:32:  [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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:377:32:  [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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:381:31:  [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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:384:31:  [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(tmptxt,bgpath);
data/zatacka-0.1.8/src/fx.cpp:408:8:  [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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:411:8:  [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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:421:8:  [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(tmptxt,tmpno);
data/zatacka-0.1.8/src/fx.cpp:429:9:  [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(bgpath, dent->d_name); //copy directory name to bgpath
data/zatacka-0.1.8/src/fx.cpp:436:11:  [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(bgpath,dent->d_name);
data/zatacka-0.1.8/src/fx.cpp:445:11:  [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(bgpath,dent->d_name);
data/zatacka-0.1.8/src/fx.cpp:451:8:  [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(tmptxt,bgpath);
data/zatacka-0.1.8/src/fx.cpp:678:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(wd,"%s",tmp2); //copy path on the other place in memory	       
data/zatacka-0.1.8/src/fx.cpp:693:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(wd,"%s",tmp2); //copy path on the other place in memory
data/zatacka-0.1.8/src/fx.cpp:712:4:  [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(tmp,tmp2);
data/zatacka-0.1.8/src/main.cpp:34:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s", DEFAULT_LIBDIR, PACKAGE);      	
data/zatacka-0.1.8/src/fx.cpp:26: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 bgpath[100]; //path to background image (map)
data/zatacka-0.1.8/src/fx.cpp:102: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 tmppath[110];
data/zatacka-0.1.8/src/fx.cpp:106: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(tmppath,"maps/");
data/zatacka-0.1.8/src/fx.cpp:304: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 tmptxt[30];
data/zatacka-0.1.8/src/fx.cpp:305: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 tmpno[5];
data/zatacka-0.1.8/src/fx.cpp:324:2:  [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(tmptxt,"(R) Resolution: ");
data/zatacka-0.1.8/src/fx.cpp:325: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(tmpno,"%d",xres);
data/zatacka-0.1.8/src/fx.cpp:328: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(tmpno,"%d",yres);
data/zatacka-0.1.8/src/fx.cpp:331:2:  [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(tmptxt,"(C) Barriers count: ");
data/zatacka-0.1.8/src/fx.cpp:332: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(tmpno,"%d",barcount);
data/zatacka-0.1.8/src/fx.cpp:335:2:  [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(bgpath,"none");
data/zatacka-0.1.8/src/fx.cpp:372:31:  [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(tmptxt,"(R) Resolution: ");
data/zatacka-0.1.8/src/fx.cpp:373:33:  [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(tmpno,"%d",xres);
data/zatacka-0.1.8/src/fx.cpp:376:32:  [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(tmpno,"%d",yres);
data/zatacka-0.1.8/src/fx.cpp:379:32:  [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(tmptxt,"(C) Barriers count: ");
data/zatacka-0.1.8/src/fx.cpp:380:32:  [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(tmpno,"%d",barcount);
data/zatacka-0.1.8/src/fx.cpp:383:32:  [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(tmptxt,"(M) Map: ");
data/zatacka-0.1.8/src/fx.cpp:393:8:  [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(tmptxt,"(B) Barriers: ");
data/zatacka-0.1.8/src/fx.cpp:394:17:  [2] (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). Risk is low because the
  source is a constant string.
							barriers?strcat(tmptxt,"on"):strcat(tmptxt,"off");
data/zatacka-0.1.8/src/fx.cpp:394:37:  [2] (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). Risk is low because the
  source is a constant string.
							barriers?strcat(tmptxt,"on"):strcat(tmptxt,"off");
data/zatacka-0.1.8/src/fx.cpp:406:8:  [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(tmptxt,"(R) Resolution: ");
data/zatacka-0.1.8/src/fx.cpp:407:8:  [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(tmpno,"%d",xres);
data/zatacka-0.1.8/src/fx.cpp:409:8:  [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(tmpno,"%d",yres);
data/zatacka-0.1.8/src/fx.cpp:419:8:  [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(tmptxt,"(C) Barriers count: ");
data/zatacka-0.1.8/src/fx.cpp:420:8:  [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(tmpno,"%d",barcount);
data/zatacka-0.1.8/src/fx.cpp:427:9:  [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(bgpath,"none"); //in the end of list is none background
data/zatacka-0.1.8/src/fx.cpp:434:11:  [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(bgpath,"none");
data/zatacka-0.1.8/src/fx.cpp:443:11:  [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(bgpath,"none");
data/zatacka-0.1.8/src/fx.cpp:450:8:  [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(tmptxt,"(M) Map: ");
data/zatacka-0.1.8/src/fx.cpp:458:8:  [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(tmptxt,"%d",speed); //convert int to char
data/zatacka-0.1.8/src/fx.cpp:649: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 tmp[3];
data/zatacka-0.1.8/src/fx.cpp:654: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(tmp,"%d",pline[i].GetScore()); //convert score to char
data/zatacka-0.1.8/src/fx.cpp:673:6:  [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 file[MAX_STRING_SIZE];
data/zatacka-0.1.8/src/fx.cpp:684: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 tmp[200];
data/zatacka-0.1.8/src/fx.cpp:686:4:  [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).
	f=fopen("/proc/self/maps","r"); //that file contains path to my aplication
data/zatacka-0.1.8/src/fx.cpp:704:3:  [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 tmp[20];
data/zatacka-0.1.8/src/fx.cpp:705:3:  [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 tmp2[2];
data/zatacka-0.1.8/src/fx.cpp:710:11:  [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(tmp2,"%d",i+1);
data/zatacka-0.1.8/src/main.cpp:33:9:  [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 path[30];
data/zatacka-0.1.8/src/fx.cpp:327:2:  [1] (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). Risk is low because the
  source is a constant character.
	strcat(tmptxt,"x");
data/zatacka-0.1.8/src/fx.cpp:375:32:  [1] (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). Risk is low because the
  source is a constant character.
                        			   	strcat(tmptxt,"x");
data/zatacka-0.1.8/src/fx.cpp:410:8:  [1] (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). Risk is low because the
  source is a constant character.
							strcat(tmptxt,"x");
data/zatacka-0.1.8/src/fx.cpp:689:6:  [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).
	tmp[strlen(tmp)-1]='\0'; //remove newline character
data/zatacka-0.1.8/src/fx.cpp:711:4:  [1] (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 character.
			strcpy(tmp,"F");

ANALYSIS SUMMARY:

Hits = 63
Lines analyzed = 1711 in approximately 0.06 seconds (29193 lines/second)
Physical Source Lines of Code (SLOC) = 1299
Hits@level = [0]   3 [1]   5 [2]  39 [3]   0 [4]  19 [5]   0
Hits@level+ = [0+]  66 [1+]  63 [2+]  58 [3+]  19 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 50.8083 [1+] 48.4988 [2+] 44.6497 [3+] 14.6266 [4+] 14.6266 [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.