bug fix patches from Michael Wood.

This commit is contained in:
brianb
2000-04-07 00:48:48 +00:00
parent c12b9ec987
commit 77aecf0269
3 changed files with 7 additions and 2 deletions

View File

@@ -263,6 +263,7 @@ static char text[256];
strncpy(text, &mdb->pg_buf[start], size);
text[size]='\0';
return text;
break;
case MDB_MEMO:
if (size<MDB_MEMO_OVERHEAD) {
return "";
@@ -272,6 +273,9 @@ static char text[256];
text[size - MDB_MEMO_OVERHEAD]='\0';
return text;
break;
default:
return "";
break;
}
return NULL;
}