svnno****@sourc*****
svnno****@sourc*****
2011年 4月 18日 (月) 19:08:33 JST
Revision: 4449 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4449 Author: doda Date: 2011-04-18 19:08:33 +0900 (Mon, 18 Apr 2011) Log Message: ----------- パラメータの最後に余分なスペースが付かないようにした。 Modified Paths: -------------- trunk/cygterm/cyglaunch.c -------------- next part -------------- Modified: trunk/cygterm/cyglaunch.c =================================================================== --- trunk/cygterm/cyglaunch.c 2011-04-18 08:39:43 UTC (rev 4448) +++ trunk/cygterm/cyglaunch.c 2011-04-18 10:08:33 UTC (rev 4449) @@ -114,8 +114,10 @@ Cmdline[0] = 0; for (i=1; i<argc; i++) { + if (i != 1) { + strncat(Cmdline, " ", sizeof(Cmdline)-strlen(Cmdline)-1); + } strncat(Cmdline, argv[i], sizeof(Cmdline)-strlen(Cmdline)-1); - strncat(Cmdline, " ", sizeof(Cmdline)-strlen(Cmdline)-1); } //printf("%s\n", Cmdline);