@@ -4109,12 +4109,12 @@ output_internal_function (struct cb_program *prog, cb_tree parameter_list)
41094109
41104110 /* Note spare byte at end */
41114111 if (prog -> currency_symbol != '\\' ) {
4112- output (", %d, '%c', '%c', '%c', %d, %d, %d, 0 };\n" ,
4112+ output (", %d, '%c', '%c', '%c', %d, %d, %d, 0, NULL };\n" ,
41134113 cb_display_sign , prog -> decimal_point , prog -> currency_symbol ,
41144114 prog -> numeric_separator , cb_filename_mapping , cb_binary_truncate ,
41154115 cb_pretty_display );
41164116 } else {
4117- output (", %d, '%c', '\\%c', '%c', %d, %d, %d, 0 };\n" ,
4117+ output (", %d, '%c', '\\%c', '%c', %d, %d, %d, 0, NULL };\n" ,
41184118 cb_display_sign , prog -> decimal_point , prog -> currency_symbol ,
41194119 prog -> numeric_separator , cb_filename_mapping , cb_binary_truncate ,
41204120 cb_pretty_display );
@@ -4360,6 +4360,7 @@ output_internal_function (struct cb_program *prog, cb_tree parameter_list)
43604360 prog -> program_id );
43614361 }
43624362 }
4363+ output_line ("cob_set_programid (&module, \"%s\");" , prog -> program_id );
43634364 if (prog -> decimal_index_max ) {
43644365 output_line ("/* Initialize decimal numbers */" );
43654366 for (i = 0 ; i < prog -> decimal_index_max ; i ++ ) {
0 commit comments