Changeset: 4961c86923e5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4961c86923e5
Modified Files:
        monetdb5/mal/mal_debugger.mx
Branch: default
Log Message:

Correct parsing of dot command arguments


diffs (21 lines):

diff --git a/monetdb5/mal/mal_debugger.mx b/monetdb5/mal/mal_debugger.mx
--- a/monetdb5/mal/mal_debugger.mx
+++ b/monetdb5/mal/mal_debugger.mx
@@ -1290,11 +1290,15 @@ mdbCommand(Client cntxt, MalBlkPtr mb, M
                                /* its argument is the optimizer level followed 
by filename*/
                                MalBlkPtr mdot;
                                char fname[2*PATHLENGTH]="";
-                               char name[PATHLENGTH];
+                               char name[PATHLENGTH], *nme;
 
                                skipWord(cntxt, b);
-                               mdot= mdbLocateMalBlk(cntxt,mb,b,out);
+                               nme = b;
                                skipNonBlanc(cntxt, b);
+                               strncpy(name,nme, PATHLENGTH-1);
+                               if( b - nme  < PATHLENGTH)
+                                       name[ b - nme] = 0;
+                               mdot= mdbLocateMalBlk(cntxt,mb,name,out);
                                skipBlanc(cntxt, b);
                                if( mdot == NULL)
                                        mdot= mb;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to