[sword-cvs] sword/utilities installmgr.cpp,1.2,1.3

sword@www.crosswire.org sword@www.crosswire.org
Mon, 7 Jul 2003 13:41:17 -0700


Update of /usr/local/cvsroot/sword/utilities
In directory www:/tmp/cvs-serv12962/utilities

Modified Files:
	installmgr.cpp 
Log Message:



Index: installmgr.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/utilities/installmgr.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** installmgr.cpp	7 Jul 2003 14:16:25 -0000	1.2
--- installmgr.cpp	7 Jul 2003 20:41:15 -0000	1.3
***************
*** 52,58 ****
  	cout << "then type yes at the prompt\n\n";
  	cout << "enable? [no] ";
! 	char *prompt = 0;
! 	size_t size = 0;
! 	getline(&prompt, &size, stdin);
  	bool enable = (!strcmp(prompt, "yes\n"));
  	free(prompt);
--- 52,57 ----
  	cout << "then type yes at the prompt\n\n";
  	cout << "enable? [no] ";
! 	char prompt[10];
! 	fgets(prompt, 9, stdin);
  	bool enable = (!strcmp(prompt, "yes\n"));
  	free(prompt);