[Ttssh2-commit] [8480] 端末サイズの横幅を500にすると落ちるのを修正

scmno****@osdn***** scmno****@osdn*****
2020年 1月 17日 (金) 00:18:55 JST


Revision: 8480
          https://osdn.net/projects/ttssh2/scm/svn/commits/8480
Author:   doda
Date:     2020-01-17 00:18:54 +0900 (Fri, 17 Jan 2020)
Log Message:
-----------
端末サイズの横幅を500にすると落ちるのを修正

Modified Paths:
--------------
    trunk/teraterm/teraterm/buffer.c

-------------- next part --------------
Modified: trunk/teraterm/teraterm/buffer.c
===================================================================
--- trunk/teraterm/teraterm/buffer.c	2020-01-16 14:21:06 UTC (rev 8479)
+++ trunk/teraterm/teraterm/buffer.c	2020-01-16 15:18:54 UTC (rev 8480)
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 1994-1998 T. Teranishi
- * (C) 2004-2019 TeraTerm Project
+ * (C) 2004-2020 TeraTerm Project
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -3662,9 +3662,9 @@
 	int Y = DrawY;
 	const LONG TmpPtr = GetLinePtr(SY);
 	int istart = IStart;
-	char bufA[TermWidthMax];
-	wchar_t bufW[TermWidthMax];
-	char bufWW[TermWidthMax];
+	char bufA[TermWidthMax+1];
+	wchar_t bufW[TermWidthMax+1];
+	char bufWW[TermWidthMax+1];
 	int lenW = 0;
 	int lenA = 0;
 	TCharAttr CurAttr;


Ttssh2-commit メーリングリストの案内