Addressed a coverity issue of minor importance.

This commit is contained in:
Ward Fisher 2014-01-15 12:48:21 -07:00
parent ccef11467a
commit 2957645985

View File

@ -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++;