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/osdsh-0.7.0/src/osdctl/osdctl.c
Examining data/osdsh-0.7.0/src/osdctl/osdctl.h
Examining data/osdsh-0.7.0/src/osdsh/apmwatch.c
Examining data/osdsh-0.7.0/src/osdsh/clockdisplay.c
Examining data/osdsh-0.7.0/src/osdsh/connectionwatch.c
Examining data/osdsh-0.7.0/src/osdsh/utils.c
Examining data/osdsh-0.7.0/src/osdsh/mixerwatch.c
Examining data/osdsh-0.7.0/src/osdsh/osdsh.h
Examining data/osdsh-0.7.0/src/osdsh/controlsh.c
Examining data/osdsh-0.7.0/src/osdsh/osdsh.c
Examining data/osdsh-0.7.0/src/config.h

FINAL RESULTS:

data/osdsh-0.7.0/src/osdctl/osdctl.c:45:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fifo_file, "%s.%d", OSD_FIFO_PATH, getuid());
data/osdsh-0.7.0/src/osdctl/osdctl.c:46:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pid_file, "%s.%d.pid", OSD_FIFO_PATH, getuid());
data/osdsh-0.7.0/src/osdctl/osdctl.c:120:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "strn(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:123:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "bars(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:126:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "slid(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:129:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "time(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:132:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "clck(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:135:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "mixr(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:138:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "%s", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:148:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "pppw(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:151:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "pdev(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:154:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "apmw(%s)", optarg);
data/osdsh-0.7.0/src/osdctl/osdctl.c:157:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(command, "apms(%s)", optarg);
data/osdsh-0.7.0/src/osdsh/apmwatch.c:128:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(report1, "AC: %s Remaining battery: %d%%(%s) %s",
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:54:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(clockformat ,arg_first);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:68:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(pppdevice, "%s", arg_first);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:71:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(connecting1, "%s", arg_first);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:72:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(connecting2, "%s", arg_secound);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:75:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(connected1, "%s", arg_first);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:76:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(connected2, "%s", arg_secound);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:79:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(disconnected, "%s", arg_first);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:110:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pppdevice, "%s", PPP_DEVICE);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:112:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ppp0pidfile, "%s/%s.pid", PPP_PID_PATH, pppdevice);
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:132:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(ppp0pidfile, "%s/%s.pid", PPP_PID_PATH, pppdevice);
data/osdsh-0.7.0/src/osdsh/controlsh.c:24:5:  [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(file, pluginfile);
data/osdsh-0.7.0/src/osdsh/controlsh.c:139:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(arg_secound, "Error loading %s", arg_first);
data/osdsh-0.7.0/src/osdsh/controlsh.c:145:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(arg_secound, "Successfully loaded %s", plugins[a].myname);
data/osdsh-0.7.0/src/osdsh/controlsh.c:208:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fifo_file, "%s.%d",OSD_FIFO_PATH, getuid());
data/osdsh-0.7.0/src/osdsh/controlsh.c:248:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fifo_file, "%s.pid", fifo_file);
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:102:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(channel_name, "%s Volume", devicelabels[channel]);
data/osdsh-0.7.0/src/osdsh/osdsh.c:118:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(file, "%s/libosdshmixer.so", PLUGINSDIR);
data/osdsh-0.7.0/src/osdsh/osdsh.c:125:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(file, "%s/libosdshclock.so", PLUGINSDIR);
data/osdsh-0.7.0/src/osdsh/osdsh.c:132:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(file, "%s/libosdshnet.so", PLUGINSDIR);
data/osdsh-0.7.0/src/osdsh/osdsh.c:139:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(file, "%s/libosdshapm.so", PLUGINSDIR);
data/osdsh-0.7.0/src/osdsh/osdsh.c:174:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pid_file, "%s.%d.pid", OSD_FIFO_PATH, getuid()) ;
data/osdsh-0.7.0/src/osdsh/osdsh.c:185:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(fifo_file, "%s.%d", OSD_FIFO_PATH, getuid());
data/osdsh-0.7.0/src/osdctl/osdctl.c:114:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc, argv, "hxs:b:l:t:c:m:e:S:p:d:a:A:", opts, &opt_index)) >= 0) {
data/osdsh-0.7.0/src/osdsh/osdsh.c:68:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((c = getopt_long(argc, argv, "hm:f:c:p:d:o:a:n:", opts, &opt_index)) >= 0) {
data/osdsh-0.7.0/src/osdctl/osdctl.c:30:19:  [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.
void send_command(char command[BUFSIZ]);
data/osdsh-0.7.0/src/osdctl/osdctl.c:31:18:  [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.
void script_file(char file[PATH_MAX]);
data/osdsh-0.7.0/src/osdctl/osdctl.c:35:19:  [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.
void send_command(char command[BUFSIZ])
data/osdsh-0.7.0/src/osdctl/osdctl.c:38: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 fifo_file[PATH_MAX];
data/osdsh-0.7.0/src/osdctl/osdctl.c:39: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 pid_file[PATH_MAX];
data/osdsh-0.7.0/src/osdctl/osdctl.c:53:14:  [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(pid_file, "r")) == NULL) {
data/osdsh-0.7.0/src/osdctl/osdctl.c:65:14:  [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(fifo_file, "w")) == NULL) {
data/osdsh-0.7.0/src/osdctl/osdctl.c:76:18:  [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.
void script_file(char file[PATH_MAX])
data/osdsh-0.7.0/src/osdctl/osdctl.c:78: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 readbuffer[BUFSIZ];
data/osdsh-0.7.0/src/osdctl/osdctl.c:81:14:  [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(file, "r")) == NULL) {
data/osdsh-0.7.0/src/osdctl/osdctl.c:94: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 command[BUFSIZ];
data/osdsh-0.7.0/src/osdctl/osdctl.c:141:6:  [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(command, "exit()");
data/osdsh-0.7.0/src/osdsh/apmwatch.c:35:15:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/apmwatch.c:35:37:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/apmwatch.c:36:4:  [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 arg_secound[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/apmwatch.c:50:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(arg_first)) {
data/osdsh-0.7.0/src/osdsh/apmwatch.c:59:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		sleep(atoi(arg_first));
data/osdsh-0.7.0/src/osdsh/apmwatch.c:77: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 battery[255];
data/osdsh-0.7.0/src/osdsh/apmwatch.c:78: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 remainingtime[255];
data/osdsh-0.7.0/src/osdsh/apmwatch.c:79: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 report1[255];
data/osdsh-0.7.0/src/osdsh/apmwatch.c:96: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(battery, "no system battery");
data/osdsh-0.7.0/src/osdsh/apmwatch.c:101: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(battery, "high");
data/osdsh-0.7.0/src/osdsh/apmwatch.c:105: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(battery, "low");
data/osdsh-0.7.0/src/osdsh/apmwatch.c:109: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(battery, "critical!!");
data/osdsh-0.7.0/src/osdsh/apmwatch.c:113: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(battery, "charging...");
data/osdsh-0.7.0/src/osdsh/apmwatch.c:124: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(remainingtime, "%dhr, %dmin, %dsec",
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:6: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 clockformat[255] = CLOCK_FORMAT;
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:39:15:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:39:37:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:40:4:  [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 arg_secound[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:57:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(arg_first)) {
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:65:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(arg_first)) 
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:67:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		sleep(atoi(arg_first));
data/osdsh-0.7.0/src/osdsh/clockdisplay.c:85: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 timestring[255];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:9: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 pppdevice[PATH_MAX+1];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:10: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 connecting1[BUFSIZ+1];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:11: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 connecting2[BUFSIZ+1];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:12: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 connected1[BUFSIZ+1];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:13: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 connected2[BUFSIZ+1];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:14: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 disconnected[BUFSIZ+1];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:15: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 timeconnected[255];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:42:15:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:42:37:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:43:4:  [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 arg_secound[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:57:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(arg_first)) {
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:104: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 ppp0pidfile[PATH_MAX];
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:115: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(connecting1, "Connecting");
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:117: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(connecting2, "please wait...");
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:120: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(connected1, "Connected");
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:122: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(connected2, "GO!");
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:125: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(disconnected, "Connection terminated");
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:134: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(ppp0pidfile, "r"))==NULL) {
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:149: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).
		while((fp=fopen(ppp0pidfile, "r"))!=NULL) {
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:153:7:  [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(timeconnected, "Connected for %d hr %d min %d sec",
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:159: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(timeconnected, "Disconnected after %d hr %d min %d sec",
data/osdsh-0.7.0/src/osdsh/controlsh.c:9:18:  [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.
int load_plugin( char pluginfile[255])
data/osdsh-0.7.0/src/osdsh/controlsh.c:15: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 file[PATH_MAX+256];
data/osdsh-0.7.0/src/osdsh/controlsh.c:81:20:  [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.
void display_stuff(char command[BUFSIZ], char arguments[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/controlsh.c:81:42:  [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.
void display_stuff(char command[BUFSIZ], char arguments[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/controlsh.c:84: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 arg_first[BUFSIZ];
data/osdsh-0.7.0/src/osdsh/controlsh.c:85: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 arg_secound[BUFSIZ];
data/osdsh-0.7.0/src/osdsh/controlsh.c:159:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	xosd_display(settings.myosd, 1, XOSD_percentage, atoi(arg_secound));
data/osdsh-0.7.0/src/osdsh/controlsh.c:163:47:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	xosd_display(settings.myosd, 1, XOSD_slider, atoi(arg_secound));
data/osdsh-0.7.0/src/osdsh/controlsh.c:200: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 command[BUFSIZ];
data/osdsh-0.7.0/src/osdsh/controlsh.c:201: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 command_arg[BUFSIZ];
data/osdsh-0.7.0/src/osdsh/controlsh.c:203: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 fifo_file[PATH_MAX +1];
data/osdsh-0.7.0/src/osdsh/controlsh.c:206: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 readbuf[BUFSIZ];
data/osdsh-0.7.0/src/osdsh/controlsh.c:218: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(fifo_file, "r");
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:12: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 *devicelabels[SOUND_MIXER_NRDEVICES]=SOUND_DEVICE_LABELS;
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:41:15:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:41:37:  [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.
int isitmine( char command[BUFSIZ], char arg_first[BUFSIZ],
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:42:4:  [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 arg_secound[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:59:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (atoi(arg_first)) {
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:98: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 channel_name[BUFSIZ];
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:100: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(channel_name, "Master Volume");
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:137:16:  [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 ((dev = open(mixerdevice, O_RDWR)) < 0) {
data/osdsh-0.7.0/src/osdsh/osdsh.c:86:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		settings->position = atoi(optarg);
data/osdsh-0.7.0/src/osdsh/osdsh.c:89:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    settings->align = atoi(optarg);
data/osdsh-0.7.0/src/osdsh/osdsh.c:92:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    settings->delay = atoi(optarg);
data/osdsh-0.7.0/src/osdsh/osdsh.c:99:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    settings->soffset = atoi(optarg);
data/osdsh-0.7.0/src/osdsh/osdsh.c:102:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    settings->ooffset = atoi(optarg);
data/osdsh-0.7.0/src/osdsh/osdsh.c:105:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    nice(atoi(optarg));
data/osdsh-0.7.0/src/osdsh/osdsh.c:116: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 file[PATH_MAX+255];
data/osdsh-0.7.0/src/osdsh/osdsh.c:154: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 pid_file[PATH_MAX+1];
data/osdsh-0.7.0/src/osdsh/osdsh.c:156: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 fifo_file[PATH_MAX +1];
data/osdsh-0.7.0/src/osdsh/osdsh.c:176: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(pid_file, "r")) {
data/osdsh-0.7.0/src/osdsh/osdsh.c:198:5:  [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(pid_file, "w");
data/osdsh-0.7.0/src/osdsh/osdsh.h:25: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 font[BUFSIZ + 1];
data/osdsh-0.7.0/src/osdsh/osdsh.h:26: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 color[BUFSIZ + 1];
data/osdsh-0.7.0/src/osdsh/osdsh.h:27: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 ocolor[BUFSIZ + 1];
data/osdsh-0.7.0/src/osdsh/osdsh.h:49: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 mixerdevice[PATH_MAX + 1];
data/osdsh-0.7.0/src/osdsh/utils.c:6:41:  [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.
void control_options(settings_t *setts, char option[2], char argument[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/utils.c:6:57:  [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.
void control_options(settings_t *setts, char option[2], char argument[BUFSIZ])
data/osdsh-0.7.0/src/osdsh/utils.c:23:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    setts->delay = atoi(argument);
data/osdsh-0.7.0/src/osdsh/utils.c:24:60:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    if (setts->displaying&&xosd_set_timeout(setts->myosd, atoi(argument)))
data/osdsh-0.7.0/src/osdsh/utils.c:52:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    setts->soffset = atoi(argument);
data/osdsh-0.7.0/src/osdsh/utils.c:57:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    setts->ooffset = atoi(argument);
data/osdsh-0.7.0/src/osdsh/utils.c:67:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    setts->yoffset = atoi(argument);
data/osdsh-0.7.0/src/osdsh/utils.c:72:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    setts->xoffset = atoi(argument);
data/osdsh-0.7.0/src/osdctl/osdctl.c:144:6:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	    sprintf(command, "");
data/osdsh-0.7.0/src/osdsh/connectionwatch.c:155:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		    usleep(3);
data/osdsh-0.7.0/src/osdsh/controlsh.c:88:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(arg_first, "");
data/osdsh-0.7.0/src/osdsh/controlsh.c:89:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(arg_secound, "");
data/osdsh-0.7.0/src/osdsh/mixerwatch.c:157:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	    usleep(1);
data/osdsh-0.7.0/src/osdsh/osdsh.c:74:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(settings->font, optarg, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/osdsh.c:78:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(settings->color, optarg, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/osdsh.c:82:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(settings->ocolor, optarg, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/osdsh.c:95:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(mixerdevice, optarg, PATH_MAX);
data/osdsh-0.7.0/src/osdsh/osdsh.c:162:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mixerdevice, MIXER, PATH_MAX);
data/osdsh-0.7.0/src/osdsh/osdsh.c:187:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(0);
data/osdsh-0.7.0/src/osdsh/utils.c:13:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(setts->font, argument, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/utils.c:18:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(setts->color, argument, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/utils.c:62:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(setts->ocolor, argument, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/utils.c:97:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(setts->font, FONT, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/utils.c:99:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(setts->color, COLOR, BUFSIZ);
data/osdsh-0.7.0/src/osdsh/utils.c:101:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(setts->ocolor, OCOLOR, BUFSIZ);

ANALYSIS SUMMARY:

Hits = 154
Lines analyzed = 1379 in approximately 0.06 seconds (22255 lines/second)
Physical Source Lines of Code (SLOC) = 1065
Hits@level = [0]  51 [1]  17 [2]  99 [3]   2 [4]  36 [5]   0
Hits@level+ = [0+] 205 [1+] 154 [2+] 137 [3+]  38 [4+]  36 [5+]   0
Hits/KSLOC@level+ = [0+] 192.488 [1+] 144.601 [2+] 128.638 [3+] 35.6808 [4+] 33.8028 [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.