File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 59
59
#define BPEN_SEP_ID 104
60
60
#define PSTACK_ID 105
61
61
62
- #define DEFAULT_PATH "System :C,System :Tools"
62
+ #define DEFAULT_PATH "SYS :C,SYS :Tools"
63
63
64
64
#define ESCAPE_C (unsigned char)'\033'
65
65
#define PLUS_C (unsigned char)'\012' //ctrl-j
Original file line number Diff line number Diff line change @@ -335,8 +335,7 @@ static int init_dawin(void)
335
335
return DONE ;
336
336
}
337
337
338
- //vars = (struct Vars *)AllocMem(sizeof(struct Vars), MEMF_CLEAR); //-V2544
339
- vars = (struct Vars * )malloc (sizeof (struct Vars )); //-V2544
338
+ vars = (struct Vars * )AllocMem (sizeof (struct Vars ), MEMF_CLEAR ); //-V2544
340
339
if (vars != NULL ) {
341
340
vars -> sgg_Extend .Pens [0 ] = (unsigned char )drawinfo -> dri_Pens [FILLTEXTPEN ];
342
341
vars -> sgg_Extend .Pens [1 ] = (unsigned char )drawinfo -> dri_Pens [FILLPEN ];
@@ -774,6 +773,6 @@ static void cleanup(void)
774
773
freetext ();
775
774
CloseWindow (dawin );
776
775
FreeSignal ((long )deadsignum );
777
- free (vars );
776
+ FreeMem (vars , sizeof ( struct Vars ) );
778
777
FreeScreenDrawInfo (screen , drawinfo );
779
778
}
You can’t perform that action at this time.
0 commit comments