Error 00001. 0x130500 (r): Access overrun: Attempt to access 15 byte(s) at 0x58A7:1A3F, that is at offset 5 in local block 0x58A7:1A3A(=[bp-0x1A] @FHELLO.EXE:0x02:0061) which is only 15 bytes long. sprintf(0x58A7:1A3F, 0x58A7:00D3 ["Kissa %d istuu!"], ...) | FHELLO.C line 34: | PAINTSTRUCT ps; | strcpy(s.p0,"k"); strcpy(s.s,"k"); strcpy(s.p2,"k"); |> sprintf(s.s,"Kissa %d istuu!",5); | free(s.p0); | if ( BeginPaint(hWnd,&ps) ) Call Tree: 0x1267:0061(=FHELLO.EXE:0x02:0061) FHELLO.C#34 0x1267:0143(=FHELLO.EXE:0x02:0143) FHELLO.C#65 0x1807:0E91(=USER.EXE:0x03:0E91) 0x17DF:3626(=USER.EXE:0x08:3626) 0x0000:3814 0x180F:0E7E(=USER.EXE:0x02:0E7E) ------------------------------------------ Error 00002. 0x310000: Bad parameter: A bad memory block (0x58A71A3A) has been passed to the function. free(0x58A7:1A3A) | FHELLO.C line 35: | strcpy(s.p0,"k"); strcpy(s.s,"k"); strcpy(s.p2,"k"); | sprintf(s.s,"Kissa %d istuu!",5); |> free(s.p0); | if ( BeginPaint(hWnd,&ps) ) | TextOut(ps.hdc, 10, 10, "Hello World!",12); Call Tree: 0x1267:006E(=FHELLO.EXE:0x02:006E) FHELLO.C#35 0x1267:0143(=FHELLO.EXE:0x02:0143) FHELLO.C#65 0x1807:0E91(=USER.EXE:0x03:0E91) 0x17DF:3626(=USER.EXE:0x08:3626) 0x0000:3814 0x180F:0E7E(=USER.EXE:0x02:0E7E) ------------------------------------------ Error 00003. 0x300010: Resource leak: The memory block (0x47870DFE) was never freed The memory block (0x4787:0DFE) [size: 512 bytes] was allocated with malloc Call Tree: 0x5787:1E28(=FHELLO.EXE:0x01:1E28) 0x1077:2BAE(=CG16.DLL:0x07:2BAE) 0x5787:0434(=FHELLO.EXE:0x01:0434) 0x5787:0CCD(=FHELLO.EXE:0x01:0CCD) ------------------------------------------ Error 00004. 0x300010: Resource leak: The memory block (0x47870DA6) was never freed The memory block (0x4787:0DA6) [size: 81 bytes] was allocated with malloc Call Tree: 0x5787:2F0D(=FHELLO.EXE:0x01:2F0D) ------------------------------------------ Functions called: free (1 times) sprintf (1 times) strcpy (6 times) GetStockObject (1 times) LoadIcon (1 times) malloc (2 times) setvbuf (2 times) isatty (2 times) Resource types used: memory block (2 allocs, 2 max) ==========================================