--- q_a/samples/termproc/termproc.c 2018/08/09 18:29:19 1.1 +++ q_a/samples/termproc/termproc.c 2018/08/09 18:30:03 1.1.1.3 @@ -1,3 +1,14 @@ + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + #include #include #include @@ -69,7 +80,7 @@ if (argc == 2) /* if a PID is passed in chrintval= argv[1][downcount]-87; else chrintval= argv[1][downcount]-55; - ProcId+= chrintval * pow( (double)16, (double)count ); + ProcId+= chrintval * pow( (double)16.0, (double)count ); count++; } /* open the process to terminate */