mirror of https://github.com/BOINC/boinc.git
lib: fix Win compile warning
This commit is contained in:
parent
c797441941
commit
bf71a029a5
|
@ -772,7 +772,7 @@ vector<string> split(string s, char delim) {
|
||||||
// - can't have ..
|
// - can't have ..
|
||||||
//
|
//
|
||||||
bool is_valid_filename(const char* name) {
|
bool is_valid_filename(const char* name) {
|
||||||
int n = strlen(name);
|
size_t n = strlen(name);
|
||||||
for (int i=0; i<n; i++) {
|
for (int i=0; i<n; i++) {
|
||||||
if (iscntrl(name[i])) {
|
if (iscntrl(name[i])) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue