* main.cs: escape module names.
authorJackson Harper <jackson@novell.com>
Tue, 9 Dec 2003 06:48:58 +0000 (06:48 -0000)
committerJackson Harper <jackson@novell.com>
Tue, 9 Dec 2003 06:48:58 +0000 (06:48 -0000)
svn path=/trunk/mono/; revision=20924

mono/dis/ChangeLog
mono/dis/main.c

index 000f6751e93cc94de18ba413cfdcdf7c50c019ad..c65e90a6abd3814921e98dff578598cafecb7022 100644 (file)
@@ -1,3 +1,7 @@
+2003-12-08  Jackson Harper <jackson@ximian.com>
+
+       * main.cs: escape module names.
+       
 2003-12-03  Zoltan Varga  <vargaz@freemail.hu>
 
        * main.c (dis_field_list): Update after changes to 
index 0dd314c358f8976f1bc81242c5fbfb15d07588fa..0e3dde9861b2e919ba0757e6974028c2e55fdb4d 100644 (file)
@@ -126,13 +126,15 @@ dis_directive_module (MonoImage *m)
        for (i = 0; i < t->rows; i++){
                guint32 cols [MONO_MODULE_SIZE];
                const char *name;
-               char *guid;
+               char *guid, *ename;
                
                mono_metadata_decode_row (t, i, cols, MONO_MODULE_SIZE);
 
                name = mono_metadata_string_heap (m, cols [MONO_MODULE_NAME]);
+               ename = get_escaped_name (name);
                guid = get_guid (m, cols [MONO_MODULE_MVID]);
-               fprintf (output, ".module %s // GUID = %s\n", name, guid);
+               fprintf (output, ".module %s // GUID = %s\n", ename, guid);
+               g_free (ename);
        }
 }