diff options
| author | Filippos Karapetis | 2008-12-03 11:47:57 +0000 | 
|---|---|---|
| committer | Filippos Karapetis | 2008-12-03 11:47:57 +0000 | 
| commit | 29f59d07f475ce81674c64c22c18a220108d095f (patch) | |
| tree | 9b2c74d01aa167710fabfccef0c1799356841282 | |
| parent | c290bb977c38bc939a42d968343f19445f117027 (diff) | |
| download | scummvm-rg350-29f59d07f475ce81674c64c22c18a220108d095f.tar.gz scummvm-rg350-29f59d07f475ce81674c64c22c18a220108d095f.tar.bz2 scummvm-rg350-29f59d07f475ce81674c64c22c18a220108d095f.zip  | |
Simplify line reading with the simpler readLine(), instead of readLine_NEW
svn-id: r35216
| -rw-r--r-- | engines/drascula/saveload.cpp | 8 | 
1 files changed, 1 insertions, 7 deletions
diff --git a/engines/drascula/saveload.cpp b/engines/drascula/saveload.cpp index 2165662b66..f61aeecded 100644 --- a/engines/drascula/saveload.cpp +++ b/engines/drascula/saveload.cpp @@ -49,14 +49,8 @@ bool DrasculaEngine::saveLoadScreen() {  			error("Can't open %s file", fileEpa);  		}  	} -	int l;  	for (n = 0; n < NUM_SAVES; n++) { -		sav->readLine_NEW(names[n], 23); -		// readLine_NEW also returns the newline character (\n), -		// so we need to clear it here -		l = strlen(names[n]); -		if (l > 0 && names[n][l - 1] == '\n') -			names[n][l - 1] = '\0'; +		strncpy(names[n], sav->readLine().c_str(), 23);  	}  	delete sav;  | 
