Changeset: 1bd7212fca20 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1bd7212fca20
Modified Files:
        gdk/gdk_atoms.c
Branch: Jul2012
Log Message:

Make coverity happy by null terminating a string.


diffs (11 lines):

diff --git a/gdk/gdk_atoms.c b/gdk/gdk_atoms.c
--- a/gdk/gdk_atoms.c
+++ b/gdk/gdk_atoms.c
@@ -232,6 +232,7 @@ ATOMproperty(str id, str property, GDKfc
        } else if (strcmp("storage", property) == 0) {
                BATatoms[t] = BATatoms[val];    /* copy from example */
                strncpy(BATatoms[t].name, id, IDLENGTH); /* restore name */
+               BATatoms[t].name[IDLENGTH - 1] = 0;
        } else if (strcmp("fromstr", property) == 0) {
                BATatoms[t].atomFromStr = (int (*)(const char *, int *, void 
**)) arg;
        } else if (strcmp("tostr", property) == 0) {
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to