dtinfo subdirectory DtMmdb

This commit is contained in:
Ulrich Wilkens
2013-08-28 19:16:37 +02:00
committed by Jon Trulson
parent 0be684281d
commit fbd81ef151
159 changed files with 735 additions and 588 deletions

View File

@@ -55,7 +55,8 @@ int compare_node(node_smart_ptr& pattern, info_base* base_ptr)
print_node(pattern, pattern_out, false, false);
char loc[BUFSIZ];
strcpy(loc, pattern.locator());
int len = MIN(strlen(pattern.locator()), BUFSIZ - 1);
*((char *) memcpy(loc, pattern.locator(), len) + len) = '\0';
node_smart_ptr x( base_ptr, loc );
char db_buf[LARGE_BUFSIZ];