From 109aa7a0ef4406095d6a4e56b581ef9354b955d7 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 3 Aug 2015 10:16:37 +0000 Subject: [PATCH] TmpDisk 0.62: fix ini-files save/load git-svn-id: svn://kolibrios.org@5659 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/tmpdisk/t_gui.c | 2 +- programs/cmm/tmpdisk/tmpdisk.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/cmm/tmpdisk/t_gui.c b/programs/cmm/tmpdisk/t_gui.c index bc735c9299..42e3f5622a 100644 --- a/programs/cmm/tmpdisk/t_gui.c +++ b/programs/cmm/tmpdisk/t_gui.c @@ -132,7 +132,7 @@ void Main_Window() break; case evReDraw: sc.get(); - DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.61",0); + DefineAndDrawWindow(170,150,314,270,0x74,sc.work,"Virtual Disk Manager 0.62",0); GetProcessInfo(#Form, SelfInfo); if (Form.status_window>2) break; diff --git a/programs/cmm/tmpdisk/tmpdisk.c b/programs/cmm/tmpdisk/tmpdisk.c index 3f2ffc6346..ff03ffd042 100644 --- a/programs/cmm/tmpdisk/tmpdisk.c +++ b/programs/cmm/tmpdisk/tmpdisk.c @@ -81,6 +81,7 @@ void GetDiskSizesFromIni() { char i, key[2]; if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini"); + key[1]=0; for (i=0; i<=9; i++) { key[0]=i+'0'; @@ -92,6 +93,7 @@ void GetDiskSizesFromIni() void SaveDiskSizesToIni() { char i, key[2]; + key[1]=0; for (i=0; i<=9; i++) { key[0]=i+'0';