Browse Source

Silence warning about signed/unsigned comparison

develop
Damien Goutte-Gattat 5 years ago
parent
commit
27111a20cc
  1. 2
      src/gfsec-use.c

2
src/gfsec-use.c

@ -80,7 +80,7 @@ get_config_file_in_dir(const char *filename, char *buffer, size_t len)
errno = ENOENT;
}
if ( rc >= len ) {
if ( rc >= 0 && (unsigned)rc >= len ) {
rc = -1;
errno = ENAMETOOLONG;
}

Loading…
Cancel
Save