Changeset: 3ac0f374f59b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/3ac0f374f59b
Modified Files:
monetdb5/mal/mal_namespace.c
Branch: no_type_bat
Log Message:
fix overwriting names
diffs (13 lines):
diff --git a/monetdb5/mal/mal_namespace.c b/monetdb5/mal/mal_namespace.c
--- a/monetdb5/mal/mal_namespace.c
+++ b/monetdb5/mal/mal_namespace.c
@@ -127,7 +127,8 @@ findName(const char *nme, size_t len, bo
namespace = ns;
}
m = &namespace->data[namespace->count++];
- strncpy(m->nme, nme, len);
+ if (m->nme != nme)
+ strncpy(m->nme, nme, len);
m->nme[len] = 0;
m->length = (unsigned short) len;
m->next = *n;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]