Fix segmentation fault

This commit is contained in:
whydoubt 2005-06-17 02:20:40 +00:00
parent 160418635d
commit 22beb78295
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,6 @@
Thu Jun 16 21:19:37 CDT 2005 Jeff Smith <whydoubt@yahoo.com>
* src/libmdb/data.c: Fix segmentation fault
Mon May 2 07:28:58 CDT 2005 Jeff Smith <whydoubt@yahoo.com> Mon May 2 07:28:58 CDT 2005 Jeff Smith <whydoubt@yahoo.com>
* include/mdbtools.h: * include/mdbtools.h:
* src/libmdb/data.c: * src/libmdb/data.c:

View File

@ -668,7 +668,8 @@ static char *mdb_memo_to_string(MdbHandle *mdb, int start, int size)
return text; return text;
} else { } else {
fprintf(stderr, "Unhandled memo field flags = %02x\n", memo_len >> 24); fprintf(stderr, "Unhandled memo field flags = %02x\n", memo_len >> 24);
return ""; strcpy(text, "");
return text;
} }
} }
static char * static char *