mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
Addressed a coverity issue of minor importance.
This commit is contained in:
parent
ccef11467a
commit
2957645985
@ -341,8 +341,9 @@ ocdodsrc_read(char* basename, char* path)
|
||||
oclog(OCLOGERR, "%s entry too long: %s",basename,line);
|
||||
continue;
|
||||
}
|
||||
strcat(line,"=1");
|
||||
strncat(line,"=1",2);
|
||||
value = strchr(line,'=');
|
||||
if(value == NULL) continue; /* Shouldn't happen, but we should address this case just to be safe. */
|
||||
}
|
||||
*value = '\0';
|
||||
value++;
|
||||
|
Loading…
Reference in New Issue
Block a user