Andrea 70540bd6dc Fix the following errors reported by VS2017 Code Analysis. (#414)
* Fix the following errors reported by VS2017 Code Analysis.

applewin\source\applewin.cpp(761): warning C6385: Reading invalid data from '"Disk Image"':  the readable size is '11' bytes, but '21' bytes may be read.
applewin\source\debugger\debug.cpp(6624): warning C6386: Buffer overrun while writing to 'sName':  the writable size is '31' bytes, but '32' bytes might be written.
applewin\source\debugger\debugger_display.cpp(3715): warning C6053: The prior call to 'strncpy' might not zero-terminate string 'sText'.
applewin\source\log.cpp(42): warning C6053: The prior call to '_vsnprintf' might not zero-terminate string 'output'.
applewin\source\debugger\debug.cpp(2759): warning C6011: Dereferencing NULL pointer 'pFont'.
applewin\source\debugger\debugger_symbols.cpp(243): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'pText'.
applewin\source\diskimagehelper.cpp(1132): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'pszExt'.
applewin\source\diskimagehelper.cpp(1141): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'szFilename'.
applewin\source\parallelprinter.cpp(242): warning C6053: The prior call to '_tcsncpy' might not zero-terminate string 'g_szPrintFilename'.

The one about RegSetValue(), according to Microsoft

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724922(v=vs.85).aspx

the last argument cbData is ignored, so I set it to 0, as in some cases was anyway wrong (see "DiskImage").


Signed-off-by: Andrea Odetti <mariofutire@gmail.com>

* Use sizeof() rather than hardcoded value.
Fix one more case on non terminated string.


Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2018-02-24 15:24:37 +00:00
2018-02-03 16:06:40 +00:00
2016-03-21 23:48:02 +00:00
2017-06-10 20:39:25 +01:00
2014-05-23 22:59:02 +01:00
2017-06-10 20:39:25 +01:00
2015-05-31 22:53:53 +01:00
2016-03-21 22:41:29 +00:00
2017-06-10 20:40:56 +01:00
2014-03-02 09:15:54 -08:00
2018-02-03 17:39:22 +00:00

AppleWin

Apple II emulator for Windows

Download latest (stable) release: AppleWin v1.27.0.0

Release Notes: v1.27.0.0

Building

To compile from source see:

Next Version

Experimental build: pending

Please report new issues

Previous Versions

Last pre-NTSC change:

Description
Apple II emulator for Windows
Readme GPL-2.0 59 MiB
Languages
C++ 53.5%
C 36.7%
HTML 8.4%
CSS 0.5%
Hack 0.5%
Other 0.3%