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/bsdgames-nonfree-2.17/rogue/throw.c
Examining data/bsdgames-nonfree-2.17/rogue/ring.c
Examining data/bsdgames-nonfree-2.17/rogue/spec_hit.c
Examining data/bsdgames-nonfree-2.17/rogue/machdep.c
Examining data/bsdgames-nonfree-2.17/rogue/play.c
Examining data/bsdgames-nonfree-2.17/rogue/trap.c
Examining data/bsdgames-nonfree-2.17/rogue/level.c
Examining data/bsdgames-nonfree-2.17/rogue/score.c
Examining data/bsdgames-nonfree-2.17/rogue/room.c
Examining data/bsdgames-nonfree-2.17/rogue/pack.c
Examining data/bsdgames-nonfree-2.17/rogue/random.c
Examining data/bsdgames-nonfree-2.17/rogue/message.c
Examining data/bsdgames-nonfree-2.17/rogue/main.c
Examining data/bsdgames-nonfree-2.17/rogue/hit.c
Examining data/bsdgames-nonfree-2.17/rogue/monster.c
Examining data/bsdgames-nonfree-2.17/rogue/zap.c
Examining data/bsdgames-nonfree-2.17/rogue/inventory.c
Examining data/bsdgames-nonfree-2.17/rogue/use.c
Examining data/bsdgames-nonfree-2.17/rogue/init.c
Examining data/bsdgames-nonfree-2.17/rogue/move.c
Examining data/bsdgames-nonfree-2.17/rogue/object.c
Examining data/bsdgames-nonfree-2.17/rogue/rogue.h
Examining data/bsdgames-nonfree-2.17/rogue/save.c
Examining data/bsdgames-nonfree-2.17/include/sys/endian.h
Examining data/bsdgames-nonfree-2.17/include/sys/cdefs.h
Examining data/bsdgames-nonfree-2.17/include/sys/poll.h
Examining data/bsdgames-nonfree-2.17/include/sys/ttydefaults.h
Examining data/bsdgames-nonfree-2.17/include/termios.h
Examining data/bsdgames-nonfree-2.17/include/signal.h
Examining data/bsdgames-nonfree-2.17/include/stdlib.h
Examining data/bsdgames-nonfree-2.17/include/stdio.h
Examining data/bsdgames-nonfree-2.17/include/string.h
Examining data/bsdgames-nonfree-2.17/lib/getprogname.c
Examining data/bsdgames-nonfree-2.17/lib/strlcpy.c
Examining data/bsdgames-nonfree-2.17/lib/fgetln.c
Examining data/bsdgames-nonfree-2.17/lib/getloadavg.c

FINAL RESULTS:

data/bsdgames-nonfree-2.17/rogue/hit.c:89:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(hit_message + strlen(hit_message),
data/bsdgames-nonfree-2.17/rogue/hit.c:97:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(hit_message + strlen(hit_message), "the %s hit", mn);
data/bsdgames-nonfree-2.17/rogue/hit.c:315:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(hit_message+strlen(hit_message), "defeated the %s", mn);
data/bsdgames-nonfree-2.17/rogue/init.c:99: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).
	(void) strcpy(login_name, pn);
data/bsdgames-nonfree-2.17/rogue/init.c:363:10:  [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).
		(void) strcpy(*str, dflt);
data/bsdgames-nonfree-2.17/rogue/inventory.c:244: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).
	(void) strcpy(descs[i++], press_space);
data/bsdgames-nonfree-2.17/rogue/inventory.c:407:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "run %s %s", com_id_tab[n].com_desc + 8, until);
data/bsdgames-nonfree-2.17/rogue/inventory.c:443:11:  [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).
			(void) strcat(id_scrolls[i].title, syllables[s]);
data/bsdgames-nonfree-2.17/rogue/inventory.c:488:10:  [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).
		(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:505:11:  [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).
			(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:507:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].title);
data/bsdgames-nonfree-2.17/rogue/inventory.c:510:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].title);
data/bsdgames-nonfree-2.17/rogue/inventory.c:511:11:  [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).
			(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:522:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].title);
data/bsdgames-nonfree-2.17/rogue/inventory.c:523:11:  [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).
			(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:529: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).
			(void) strcpy(desc, id_table[obj->which_kind].title);
data/bsdgames-nonfree-2.17/rogue/inventory.c:535:11:  [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).
			(void) strcat(desc, name_of(obj));
data/bsdgames-nonfree-2.17/rogue/inventory.c:545:11:  [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).
			(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:547:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].title);
data/bsdgames-nonfree-2.17/rogue/inventory.c:555:11:  [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).
			(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:556:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].real);
data/bsdgames-nonfree-2.17/rogue/inventory.c:562:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(more_info, "%s%d ", ((obj->class > 0) ? "+" : ""),
data/bsdgames-nonfree-2.17/rogue/inventory.c:564:13:  [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).
					(void) strcat(desc, more_info);
data/bsdgames-nonfree-2.17/rogue/inventory.c:567:11:  [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).
			(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:568:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].real);
data/bsdgames-nonfree-2.17/rogue/inventory.c:571:11:  [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).
			(void) strcat(desc, item_name);
data/bsdgames-nonfree-2.17/rogue/inventory.c:572:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].real);
data/bsdgames-nonfree-2.17/rogue/inventory.c:575:12:  [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).
				(void) strcat(desc, more_info);
data/bsdgames-nonfree-2.17/rogue/inventory.c:579:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(desc, "%s%d ", ((obj->d_enchant >= 0) ? "+" : ""),
data/bsdgames-nonfree-2.17/rogue/inventory.c:581:11:  [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).
			(void) strcat(desc, id_table[obj->which_kind].title);
data/bsdgames-nonfree-2.17/rogue/inventory.c:583:11:  [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).
			(void) strcat(desc, more_info);
data/bsdgames-nonfree-2.17/rogue/inventory.c:586:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(desc+strlen(desc), "%s%d,%s%d ",
data/bsdgames-nonfree-2.17/rogue/inventory.c:589:11:  [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).
			(void) strcat(desc, name_of(obj));
data/bsdgames-nonfree-2.17/rogue/inventory.c:628:10:  [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).
		(void) strcpy(id_wands[i].title, wand_materials[j]);
data/bsdgames-nonfree-2.17/rogue/inventory.c:639:10:  [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).
		(void) strcpy(id_rings[i].title, gems[j]);
data/bsdgames-nonfree-2.17/rogue/inventory.c:784:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "'%c': %s", ch, id);
data/bsdgames-nonfree-2.17/rogue/machdep.c:488:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(shell, shell, (char *) 0);
data/bsdgames-nonfree-2.17/rogue/message.c:89:10:  [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).
		(void) strcpy(msgs[imsg], msg);
data/bsdgames-nonfree-2.17/rogue/message.c:150:10:  [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).
		(void) strcpy(buf, insert);
data/bsdgames-nonfree-2.17/rogue/pack.c:412:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(desc, "you can't wield %s",
data/bsdgames-nonfree-2.17/rogue/pack.c:472:10:  [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).
		(void) strcpy(id_table[obj->which_kind].title, buf);
data/bsdgames-nonfree-2.17/rogue/room.c:603: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).
					(void) strcpy(*(options[i].strval), buf);
data/bsdgames-nonfree-2.17/rogue/save.c:95:12:  [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).
				(void) strcpy(name_buffer, hptr);
data/bsdgames-nonfree-2.17/rogue/save.c:96:12:  [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).
				(void) strcat(name_buffer, sfile+1);
data/bsdgames-nonfree-2.17/rogue/score.c:98:10:  [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).
		(void) strcat(buf, m_names[monster->m_char - 'A']);
data/bsdgames-nonfree-2.17/rogue/score.c:254: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).
			(void) strcpy(scores[i], scores[i+1]);
data/bsdgames-nonfree-2.17/rogue/score.c:255: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).
			(void) strcpy(n_names[i], n_names[i+1]);
data/bsdgames-nonfree-2.17/rogue/score.c:342:12:  [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).
				(void) strcpy(scores[i], scores[i-1]);
data/bsdgames-nonfree-2.17/rogue/score.c:343:12:  [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).
				(void) strcpy(n_names[i], n_names[i-1]);
data/bsdgames-nonfree-2.17/rogue/score.c:347:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%2d    %6ld   %s: ", rank+1, (long)rogue.gold,
data/bsdgames-nonfree-2.17/rogue/score.c:378:10:  [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).
		(void) strcat(buf, m_names[monster->m_char - 'A']);
data/bsdgames-nonfree-2.17/rogue/score.c:388: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).
	(void) strcpy(scores[rank], buf);
data/bsdgames-nonfree-2.17/rogue/score.c:389: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).
	(void) strcpy(n_names[rank], n_name);
data/bsdgames-nonfree-2.17/rogue/score.c:567:10:  [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).
		(void) strcpy(buf, score);
data/bsdgames-nonfree-2.17/rogue/score.c:575:10:  [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).
		(void) strcpy(buf+15, n_name);
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:374:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(msg, "wait, that's a %s!", mon_name(monster));
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:414:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(msg, "the %s's bite has weakened you",
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:486:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(msg, "the gaze of the %s has confused you", mon_name(monster));
data/bsdgames-nonfree-2.17/rogue/throw.c:145:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(hit_message, "the %s", name_of(weapon));
data/bsdgames-nonfree-2.17/rogue/throw.c:257:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(msg, "the %svanishes as it hits the ground",
data/bsdgames-nonfree-2.17/rogue/use.c:167:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "hmm, this potion tastes like %sjuice", fruit);
data/bsdgames-nonfree-2.17/rogue/use.c:214:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(msg, "your %sglow%s %sfor a moment",
data/bsdgames-nonfree-2.17/rogue/use.c:232:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(msg, "your armor glows %sfor a moment",
data/bsdgames-nonfree-2.17/rogue/use.c:282:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(msg, "your hands glow %sfor a moment", get_ench_color());
data/bsdgames-nonfree-2.17/rogue/use.c:421:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "my, that was a yummy %s", fruit);
data/bsdgames-nonfree-2.17/rogue/use.c:616:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(msg, "you feel less %s now", (halluc ? "trippy" : "confused"));
data/bsdgames-nonfree-2.17/rogue/zap.c:301:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "the %s bounces", s);
data/bsdgames-nonfree-2.17/rogue/zap.c:339:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "the %s misses the %s", s, mon_name(monster));
data/bsdgames-nonfree-2.17/rogue/zap.c:355:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "the %s hits the %s", s, mon_name(monster));
data/bsdgames-nonfree-2.17/rogue/zap.c:372:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(buf, "the %s hits the %s", s, mon_name(monster));
data/bsdgames-nonfree-2.17/rogue/zap.c:379:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "the %s misses", s);
data/bsdgames-nonfree-2.17/rogue/zap.c:388:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "the %s hits", s);
data/bsdgames-nonfree-2.17/rogue/machdep.c:373:10:  [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.
	value = getenv(name);
data/bsdgames-nonfree-2.17/lib/getloadavg.c:42:8:  [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).
  fp = fopen("/proc/loadavg", "r");
data/bsdgames-nonfree-2.17/rogue/hit.c:59: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 hit_message[80] = "";
data/bsdgames-nonfree-2.17/rogue/hit.c:142:12:  [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.
				(void) strcpy(hit_message, "you miss  ");
data/bsdgames-nonfree-2.17/rogue/hit.c:155:12:  [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.
				(void) strcpy(hit_message, "you hit  ");
data/bsdgames-nonfree-2.17/rogue/hit.c:211: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 new_damage[12];
data/bsdgames-nonfree-2.17/rogue/hit.c:222: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(new_damage, "%dd%d", tmp_to_hit, tmp_damage);
data/bsdgames-nonfree-2.17/rogue/init.c:61: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 login_name[MAX_OPT_LEN];
data/bsdgames-nonfree-2.17/rogue/init.c:89: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).
	fd = open("/dev/null", O_RDONLY);
data/bsdgames-nonfree-2.17/rogue/inventory.c:61:7:  [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.
const char *const wand_materials[WAND_MATERIALS] = {
data/bsdgames-nonfree-2.17/rogue/inventory.c:95:7:  [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.
const char *const gems[GEMS] = {
data/bsdgames-nonfree-2.17/rogue/inventory.c:112:7:  [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.
const char *const syllables[MAXSYLLABLES] = {
data/bsdgames-nonfree-2.17/rogue/inventory.c:220: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 descs[MAX_PACK_COUNT+1][DCOLS];
data/bsdgames-nonfree-2.17/rogue/inventory.c:285:5:  [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 save[(((COMS / 2) + (COMS % 2)) + 1)][DCOLS];
data/bsdgames-nonfree-2.17/rogue/inventory.c:396: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 until[18], buf[DCOLS];
data/bsdgames-nonfree-2.17/rogue/inventory.c:401: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.
			(void) strcpy(until, "until adjascent");
data/bsdgames-nonfree-2.17/rogue/inventory.c:420: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 t[MAX_ID_TITLE_LEN];
data/bsdgames-nonfree-2.17/rogue/inventory.c:425:3:  [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(t, id_potions[j].title, MAX_ID_TITLE_LEN);
data/bsdgames-nonfree-2.17/rogue/inventory.c:426:3:  [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(id_potions[j].title, id_potions[k].title, MAX_ID_TITLE_LEN);
data/bsdgames-nonfree-2.17/rogue/inventory.c:427:3:  [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(id_potions[k].title, t, MAX_ID_TITLE_LEN);
data/bsdgames-nonfree-2.17/rogue/inventory.c:446:10:  [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.
		(void) strcpy(id_scrolls[i].title+(n-1), "' ");
data/bsdgames-nonfree-2.17/rogue/inventory.c:457: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 more_info[32];
data/bsdgames-nonfree-2.17/rogue/inventory.c:461:10:  [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.
		(void) strcpy(desc, "the amulet of Yendor ");
data/bsdgames-nonfree-2.17/rogue/inventory.c:467: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(desc, "%d pieces of gold", obj->quantity);
data/bsdgames-nonfree-2.17/rogue/inventory.c:473: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.
			(void) strcpy(desc, "a ");
data/bsdgames-nonfree-2.17/rogue/inventory.c:475: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(desc, "%d ", obj->quantity);
data/bsdgames-nonfree-2.17/rogue/inventory.c:481:5:  [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(desc, "%d rations of ", obj->quantity);
data/bsdgames-nonfree-2.17/rogue/inventory.c:483:12:  [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.
				(void) strcpy(desc, "some ");
data/bsdgames-nonfree-2.17/rogue/inventory.c:486: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.
			(void) strcpy(desc, "a ");
data/bsdgames-nonfree-2.17/rogue/inventory.c:506:11:  [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.
			(void) strcat(desc, "entitled: ");
data/bsdgames-nonfree-2.17/rogue/inventory.c:546:11:  [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.
			(void) strcat(desc, "called ");
data/bsdgames-nonfree-2.17/rogue/inventory.c:574:5:  [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(more_info, "[%d]", obj->class);
data/bsdgames-nonfree-2.17/rogue/inventory.c:582: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(more_info, "[%d] ", get_armor_class(obj));
data/bsdgames-nonfree-2.17/rogue/inventory.c:604:10:  [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.
		(void) strcat(desc, "in hand");
data/bsdgames-nonfree-2.17/rogue/inventory.c:606:10:  [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.
		(void) strcat(desc, "being worn");
data/bsdgames-nonfree-2.17/rogue/inventory.c:608:10:  [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.
		(void) strcat(desc, "on left hand");
data/bsdgames-nonfree-2.17/rogue/inventory.c:610:10:  [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.
		(void) strcat(desc, "on right hand");
data/bsdgames-nonfree-2.17/rogue/inventory.c:648: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/inventory.c:713: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 buf[DCOLS];
data/bsdgames-nonfree-2.17/rogue/level.c:647: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 dirs[4];
data/bsdgames-nonfree-2.17/rogue/level.c:823: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 mbuf[40];
data/bsdgames-nonfree-2.17/rogue/level.c:835: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(mbuf, "welcome to level %d", i);
data/bsdgames-nonfree-2.17/rogue/level.c:876: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 mbuf[80];
data/bsdgames-nonfree-2.17/rogue/level.c:888: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(mbuf, "R-Hp: %.2f, E-Hp: %.2f (!: %d, V: %d)", real_average,
data/bsdgames-nonfree-2.17/rogue/machdep.c:457:13:  [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).
		if ((fd = open(_PATH_SCOREFILE, O_RDONLY)) < 1) {
data/bsdgames-nonfree-2.17/rogue/message.c:60: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 msgs[NMESSAGES][DCOLS] = {"", "", "", "", ""};
data/bsdgames-nonfree-2.17/rogue/message.c:63: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 hunger_str[HUNGER_STR_LEN] = "";
data/bsdgames-nonfree-2.17/rogue/message.c:231: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 buf[16];
data/bsdgames-nonfree-2.17/rogue/message.c:242: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(buf, "%d", cur_level);
data/bsdgames-nonfree-2.17/rogue/message.c:253: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(buf, "%ld", rogue.gold);
data/bsdgames-nonfree-2.17/rogue/message.c:265: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(buf, "%d(%d)", rogue.hp_current, rogue.hp_max);
data/bsdgames-nonfree-2.17/rogue/message.c:277: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(buf, "%d(%d)", (rogue.str_current + add_strength),
data/bsdgames-nonfree-2.17/rogue/message.c:289: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(buf, "%d", get_armor_class(rogue.armor));
data/bsdgames-nonfree-2.17/rogue/message.c:303: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(buf, "%d/%ld", rogue.exp, rogue.exp_points);
data/bsdgames-nonfree-2.17/rogue/message.c:331: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 buf[DCOLS+2];
data/bsdgames-nonfree-2.17/rogue/message.c:334:12:  [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).
	if ((fp = fopen("rogue.screen", "w")) != NULL) {
data/bsdgames-nonfree-2.17/rogue/move.c:68: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/move.c:149: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.
			(void) strcpy(desc, "moved onto ");
data/bsdgames-nonfree-2.17/rogue/move.c:383:10:  [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.
		(void) strcpy(hunger_str, "hungry");
data/bsdgames-nonfree-2.17/rogue/move.c:388:10:  [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.
		(void) strcpy(hunger_str, "weak");
data/bsdgames-nonfree-2.17/rogue/move.c:394: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.
			(void) strcpy(hunger_str, "faint");
data/bsdgames-nonfree-2.17/rogue/object.c:747: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 buf[80];
data/bsdgames-nonfree-2.17/rogue/pack.c:156: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/pack.c:208: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.
	(void) strcpy(desc, "dropped ");
data/bsdgames-nonfree-2.17/rogue/pack.c:318: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/pack.c:328: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.
			(void) strcpy(desc, "was wearing ");
data/bsdgames-nonfree-2.17/rogue/pack.c:344: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/pack.c:364: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.
	(void) strcpy(desc, "wearing ");
data/bsdgames-nonfree-2.17/rogue/pack.c:396: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/pack.c:421:10:  [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.
		(void) strcpy(desc, "wielding ");
data/bsdgames-nonfree-2.17/rogue/pack.c:453: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 buf[MAX_TITLE_LENGTH+2];
data/bsdgames-nonfree-2.17/rogue/pack.c:567: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/ring.c:76: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/ring.c:152: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 buf[DCOLS];
data/bsdgames-nonfree-2.17/rogue/ring.c:190: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.
			(void) strcpy(buf, "removed ");
data/bsdgames-nonfree-2.17/rogue/ring.c:257: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 buf[DCOLS];
data/bsdgames-nonfree-2.17/rogue/ring.c:272: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(buf, "ste %d, r_r %d, e_r %d, r_t %d, s_s %d, a_s %d, reg %d, r_e %d, s_i %d, m_a %d, aus %d",
data/bsdgames-nonfree-2.17/rogue/rogue.h:194: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 title[MAX_ID_TITLE_LEN];
data/bsdgames-nonfree-2.17/rogue/rogue.h:765: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	hunger_str[HUNGER_STR_LEN];
data/bsdgames-nonfree-2.17/rogue/rogue.h:766: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	login_name[MAX_OPT_LEN];
data/bsdgames-nonfree-2.17/rogue/room.c:526: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 save[NOPTS+1][DCOLS];
data/bsdgames-nonfree-2.17/rogue/room.c:530: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 buf[MAX_OPT_LEN + 2];
data/bsdgames-nonfree-2.17/rogue/save.c:65: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 fname[64];
data/bsdgames-nonfree-2.17/rogue/save.c:101:13:  [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).
	if (((fp = fopen(sfile, "w")) == NULL) ||
data/bsdgames-nonfree-2.17/rogue/save.c:160: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 buf[4];
data/bsdgames-nonfree-2.17/rogue/save.c:161: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 tbuf[40];
data/bsdgames-nonfree-2.17/rogue/save.c:166:13:  [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).
	    ((fp = fopen(fname, "r")) == NULL)) {
data/bsdgames-nonfree-2.17/rogue/save.c:291: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 buf[DCOLS];
data/bsdgames-nonfree-2.17/rogue/save.c:295:17:  [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.
			r_write(fp, (char *) dungeon[i], (DCOLS * sizeof(dungeon[0][0])));
data/bsdgames-nonfree-2.17/rogue/save.c:301:16:  [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.
			r_read(fp, (char *) dungeon[i], (DCOLS * sizeof(dungeon[0][0])));
data/bsdgames-nonfree-2.17/rogue/score.c:65: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 buf[128];
data/bsdgames-nonfree-2.17/rogue/score.c:76: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.
			(void) strcpy(buf, "died of hypothermia");
data/bsdgames-nonfree-2.17/rogue/score.c:79: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.
			(void) strcpy(buf, "died of starvation");
data/bsdgames-nonfree-2.17/rogue/score.c:82: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.
			(void) strcpy(buf, "killed by a dart");
data/bsdgames-nonfree-2.17/rogue/score.c:85: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.
			(void) strcpy(buf, "quit");
data/bsdgames-nonfree-2.17/rogue/score.c:88: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.
			(void) strcpy(buf, "killed by fire");
data/bsdgames-nonfree-2.17/rogue/score.c:92:10:  [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.
		(void) strcpy(buf, "Killed by ");
data/bsdgames-nonfree-2.17/rogue/score.c:94:11:  [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.
			(void) strcat(buf, "an ");
data/bsdgames-nonfree-2.17/rogue/score.c:96:11:  [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.
			(void) strcat(buf, "a ");
data/bsdgames-nonfree-2.17/rogue/score.c:100:9:  [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.
	(void) strcat(buf, " with ");
data/bsdgames-nonfree-2.17/rogue/score.c:101: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(buf+strlen(buf), "%ld gold", rogue.gold);
data/bsdgames-nonfree-2.17/rogue/score.c:157: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 buf[128];
data/bsdgames-nonfree-2.17/rogue/score.c:203: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 scores[10][82];
data/bsdgames-nonfree-2.17/rogue/score.c:204: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 n_names[10][30];
data/bsdgames-nonfree-2.17/rogue/score.c:205: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 buf[128];
data/bsdgames-nonfree-2.17/rogue/score.c:213:12:  [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).
	if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL &&
data/bsdgames-nonfree-2.17/rogue/score.c:214:12:  [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).
	    (fp = fopen(_PATH_SCOREFILE, "w+")) == NULL) {
data/bsdgames-nonfree-2.17/rogue/score.c:337: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 buf[128];
data/bsdgames-nonfree-2.17/rogue/score.c:353:11:  [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.
			(void) strcat(buf, "died of hypothermia");
data/bsdgames-nonfree-2.17/rogue/score.c:356:11:  [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.
			(void) strcat(buf, "died of starvation");
data/bsdgames-nonfree-2.17/rogue/score.c:359:11:  [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.
			(void) strcat(buf, "killed by a dart");
data/bsdgames-nonfree-2.17/rogue/score.c:362:11:  [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.
			(void) strcat(buf, "quit");
data/bsdgames-nonfree-2.17/rogue/score.c:365:11:  [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.
			(void) strcat(buf, "a total winner");
data/bsdgames-nonfree-2.17/rogue/score.c:368:11:  [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.
			(void) strcat(buf, "killed by fire");
data/bsdgames-nonfree-2.17/rogue/score.c:372:10:  [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.
		(void) strcat(buf, "killed by ");
data/bsdgames-nonfree-2.17/rogue/score.c:374:11:  [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.
			(void) strcat(buf, "an ");
data/bsdgames-nonfree-2.17/rogue/score.c:376:11:  [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.
			(void) strcat(buf, "a ");
data/bsdgames-nonfree-2.17/rogue/score.c:380: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(buf+strlen(buf), " on level %d ",  max_level);
data/bsdgames-nonfree-2.17/rogue/score.c:382:10:  [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.
		(void) strcat(buf, "with amulet");
data/bsdgames-nonfree-2.17/rogue/score.c:408: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 buf[DCOLS];
data/bsdgames-nonfree-2.17/rogue/score.c:422:5:  [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(buf, "%5d      ", val);
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:174: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 desc[80];
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:208: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.
	(void) strcpy(desc, "she stole ");
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:366: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 msg[80];
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:403: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 msg[80];
data/bsdgames-nonfree-2.17/rogue/spec_hit.c:475: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 msg[80];
data/bsdgames-nonfree-2.17/rogue/throw.c:149:10:  [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.
		(void) strcat(hit_message, "misses  ");
data/bsdgames-nonfree-2.17/rogue/throw.c:153:9:  [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.
	(void) strcat(hit_message, "hit  ");
data/bsdgames-nonfree-2.17/rogue/throw.c:210: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 msg[80];
data/bsdgames-nonfree-2.17/rogue/trap.c:62:7:  [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.
const char *const trap_strings[TRAPS * 2] = {
data/bsdgames-nonfree-2.17/rogue/use.c:73: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 buf[80];
data/bsdgames-nonfree-2.17/rogue/use.c:188: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 msg[DCOLS];
data/bsdgames-nonfree-2.17/rogue/use.c:373: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 desc[DCOLS];
data/bsdgames-nonfree-2.17/rogue/use.c:401: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 buf[70];
data/bsdgames-nonfree-2.17/rogue/use.c:613: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 msg[80];
data/bsdgames-nonfree-2.17/rogue/zap.c:229: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 buf[100];
data/bsdgames-nonfree-2.17/rogue/zap.c:284: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 buf[DCOLS];
data/bsdgames-nonfree-2.17/lib/fgetln.c:63:10:  [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).
  *len = strlen(buf);
data/bsdgames-nonfree-2.17/rogue/hit.c:89:26:  [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(hit_message + strlen(hit_message),
data/bsdgames-nonfree-2.17/rogue/hit.c:97:25:  [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(hit_message + strlen(hit_message), "the %s hit", mn);
data/bsdgames-nonfree-2.17/rogue/hit.c:315:23:  [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(hit_message+strlen(hit_message), "defeated the %s", mn);
data/bsdgames-nonfree-2.17/rogue/init.c:96:16:  [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).
	if ((!pn) || (strlen(pn) >= MAX_OPT_LEN)) {
data/bsdgames-nonfree-2.17/rogue/init.c:347:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void) strncpy(*s, t, i);
data/bsdgames-nonfree-2.17/rogue/inventory.c:237: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).
			if ((n = strlen(descs[i])) > maxlen) {
data/bsdgames-nonfree-2.17/rogue/inventory.c:280:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getchar();
data/bsdgames-nonfree-2.17/rogue/inventory.c:439:10:  [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.
		(void) strcpy(id_scrolls[i].title, "'");
data/bsdgames-nonfree-2.17/rogue/inventory.c:445:7:  [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).
		n = strlen(id_scrolls[i].title);
data/bsdgames-nonfree-2.17/rogue/inventory.c:586:17:  [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(desc+strlen(desc), "%s%d,%s%d ",
data/bsdgames-nonfree-2.17/rogue/inventory.c:597: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).
			for (i = strlen(desc) + 1; i > 1; i--) {
data/bsdgames-nonfree-2.17/rogue/message.c:95:12:  [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).
	msg_col = strlen(msg);
data/bsdgames-nonfree-2.17/rogue/message.c:146: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).
	n = strlen(prompt);
data/bsdgames-nonfree-2.17/rogue/message.c:151:7:  [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(insert);
data/bsdgames-nonfree-2.17/rogue/message.c:200:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ch = getchar();
data/bsdgames-nonfree-2.17/rogue/message.c:321:11:  [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).
	for (i = strlen(s); i < n; i++) {
data/bsdgames-nonfree-2.17/rogue/message.c:378:12:  [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).
		for (i = strlen(str) - 1; i >= 0; i--) {
data/bsdgames-nonfree-2.17/rogue/move.c:153:7:  [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).
		n = strlen(desc);
data/bsdgames-nonfree-2.17/rogue/pack.c:579:9:  [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).
				n = strlen(desc);
data/bsdgames-nonfree-2.17/rogue/room.c:595:19:  [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).
						move(i, j + strlen(options[i].prompt));
data/bsdgames-nonfree-2.17/rogue/room.c:597:19:  [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).
						move(i, j + strlen(options[i].prompt));
data/bsdgames-nonfree-2.17/rogue/room.c:653:10:  [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).
	move(i, strlen(options[i].prompt));
data/bsdgames-nonfree-2.17/rogue/save.c:89:10:  [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).
			len = strlen(hptr) + strlen(sfile);
data/bsdgames-nonfree-2.17/rogue/save.c:89:25:  [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).
			len = strlen(hptr) + strlen(sfile);
data/bsdgames-nonfree-2.17/rogue/save.c:341: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).
	n = strlen(s) + 1;
data/bsdgames-nonfree-2.17/rogue/score.c:101: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(buf+strlen(buf), "%ld gold", rogue.gold);
data/bsdgames-nonfree-2.17/rogue/score.c:380: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(buf+strlen(buf), " on level %d ",  max_level);
data/bsdgames-nonfree-2.17/rogue/score.c:384:11:  [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).
	for (i = strlen(buf); i < 79; i++) {
data/bsdgames-nonfree-2.17/rogue/score.c:569:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		(void) strncpy(buf, score, 16);
data/bsdgames-nonfree-2.17/rogue/score.c:576:7:  [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(buf);
data/bsdgames-nonfree-2.17/rogue/score.c:593:21:  [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).
	margin = ((DCOLS - strlen(buf)) / 2);
data/bsdgames-nonfree-2.17/rogue/zap.c:237: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).
			xxxx(buf, strlen(buf));

ANALYSIS SUMMARY:

Hits = 242
Lines analyzed = 12653 in approximately 0.34 seconds (37543 lines/second)
Physical Source Lines of Code (SLOC) = 9985
Hits@level = [0]   9 [1]  33 [2] 136 [3]   1 [4]  72 [5]   0
Hits@level+ = [0+] 251 [1+] 242 [2+] 209 [3+]  73 [4+]  72 [5+]   0
Hits/KSLOC@level+ = [0+] 25.1377 [1+] 24.2364 [2+] 20.9314 [3+] 7.31097 [4+] 7.21082 [5+]   0
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.