new mdb-array.c and changes to data.c (Karl)

database password stuff from (Carl)
multiple backend support (Carl and Brian)
This commit is contained in:
brianb
2000-04-02 17:08:30 +00:00
parent 418d57bc0c
commit c12b9ec987
20 changed files with 352 additions and 43 deletions

View File

@@ -258,14 +258,14 @@ static char text[256];
break;
case MDB_TEXT:
if (size<0) {
return "(oops)";
return "";
}
strncpy(text, &mdb->pg_buf[start], size);
text[size]='\0';
return text;
case MDB_MEMO:
if (size<MDB_MEMO_OVERHEAD) {
return "(oops)";
return "";
}
strncpy(text, &mdb->pg_buf[start + MDB_MEMO_OVERHEAD],
size - MDB_MEMO_OVERHEAD);