mirror of
https://github.com/open-simh/simtools.git
synced 2026-05-03 06:28:37 +00:00
Simple warning fixes (#4)
* Fix warnings in config11 * Fix warnings in converters/asc * Fix warning in converters/decsys * Fix warning in converters/dtos8cvt * Fix strncpy() warning * Fix unsigned/signed warning * Fix assignment-within-if warning * Fix assignment-within-if warning * Fix unused `main` parameters warnings * Fix assignment-within-if warning * Fix assignment-within-if warning * Fix assignment-within-if warning * Fix assignment-within-if warning * Fix assignment-within-if warning * Fix assignment-within-if warning * config11: Remove accidentally committed debugging code --------- Co-authored-by: Jan-Benedict Glaw <jbglaw@getslash.de>
This commit is contained in:
committed by
GitHub
parent
6d66f3b9d2
commit
a58983117c
@@ -638,12 +638,12 @@ static struct mountedFS *findMount(
|
||||
uint8_t unitpresent = 0;
|
||||
unsigned int i;
|
||||
char *endptr, *ptr;
|
||||
char origdev[32];
|
||||
char origdev[33];
|
||||
|
||||
if ((ptr = strchr(dev, ':')) != NULL) {
|
||||
*ptr++ = '\0';
|
||||
|
||||
strncpy(origdev, dev, sizeof(origdev));
|
||||
strncpy(origdev, dev, sizeof(origdev)-1);
|
||||
|
||||
/*
|
||||
* Determine validity of the device name and whether a unit number is
|
||||
|
||||
Reference in New Issue
Block a user