mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-07 16:34:20 +01:00
Prevent compiler warnings and potential OLC setting string truncation.
- Prevented compiler warnings when using ’-Wtautological-pointer-compare’ on development system (Darwin) - Prevented possible string truncation when adding a newline to an OLC setting string.
This commit is contained in:
parent
5dc6eae4c5
commit
68fcdb73bf
9 changed files with 18 additions and 19 deletions
|
|
@ -1698,7 +1698,7 @@ ACMD(do_levels)
|
|||
}
|
||||
one_argument(argument, arg);
|
||||
|
||||
if (arg != NULL && *arg) {
|
||||
if (*arg) {
|
||||
if (isdigit(*arg)) {
|
||||
ret = sscanf(arg, "%d-%d", &min_lev, &max_lev);
|
||||
if (ret == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue