===========================================================================
| 2953 | |
| 2954 | //=========================================================================== |
| 2955 | void DrawSourceLine( int iSourceLine, RECT &rect ) |
| 2956 | { |
| 2957 | char sLine[ CONSOLE_WIDTH ]; |
| 2958 | memset( sLine, 0, CONSOLE_WIDTH ); |
| 2959 | |
| 2960 | if ((iSourceLine >=0) && (iSourceLine < g_AssemblerSourceBuffer.GetNumLines() )) |
| 2961 | { |
| 2962 | char * pSource = g_AssemblerSourceBuffer.GetLine( iSourceLine ); |
| 2963 | |
| 2964 | // int nLenSrc = strlen( pSource ); |
| 2965 | // if (nLenSrc >= CONSOLE_WIDTH) |
| 2966 | // bool bStop = true; |
| 2967 | |
| 2968 | TextConvertTabsToSpaces( sLine, pSource, CONSOLE_WIDTH-1 ); // bugfix 2,3,1,15: fence-post error, buffer over-run |
| 2969 | |
| 2970 | // int nLenTab = strlen( sLine ); |
| 2971 | } |
| 2972 | else |
| 2973 | { |
| 2974 | strcpy( sLine, " " ); |
| 2975 | } |
| 2976 | |
| 2977 | PrintText( sLine, rect ); |
| 2978 | rect.top += g_nFontHeight; |
| 2979 | } |
| 2980 | |
| 2981 | |
| 2982 | //=========================================================================== |
no test coverage detected