- Little cleanup in tee and force installation to Program Files instead of Program Files (x86) on x64 systems to avoid yet more problems with ().

svn path=/trunk/tools/RosBE/; revision=597
This commit is contained in:
Peter Ward 2007-12-03 19:37:20 +00:00
parent 439a5483f1
commit e0da17ce16
2 changed files with 5 additions and 9 deletions

View File

@ -10,7 +10,7 @@
;;
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "RosBE-${PRODUCT_VERSION}.exe"
InstallDir "$PROGRAMFILES\RosBE"
InstallDir "$PROGRAMFILES64\RosBE"
InstallDirRegKey HKCU "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show

View File

@ -12,7 +12,7 @@
int main(int argc, char* argv[])
{
unsigned char charbuff;
int charbuff;
FILE *fp;
if (argc > 2)
@ -37,14 +37,10 @@ int main(int argc, char* argv[])
fprintf(stderr, "%s: Error cannot create/open file \"%s\".\n", argv[0], argv[1]);
return -1;
}
while (!feof(stdin))
while ((charbuff = fgetc(stdin)) != EOF)
{
charbuff = fgetc(stdin);
if (!feof(stdin))
{
fputc(charbuff, stdout);
fputc(charbuff, fp);
}
fputc(charbuff, stdout);
fputc(charbuff, fp);
}
if (fclose(fp))
{