projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r246: More modifications for MSVC
[ctsim.git]
/
libctsim
/
projections.cpp
diff --git
a/libctsim/projections.cpp
b/libctsim/projections.cpp
index ea3074b486bf68da1424c6c2cf3b810532c78ba5..7de82039d629517652649bf741ede6ae4a5f454b 100644
(file)
--- a/
libctsim/projections.cpp
+++ b/
libctsim/projections.cpp
@@
-8,7
+8,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.2
7 2000/12/04 05:36:57
kevin Exp $
+** $Id: projections.cpp,v 1.2
8 2000/12/06 01:46:43
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-254,14
+254,15
@@
Projections::headerRead (fnetorderstream& fs)
return false;
}
return false;
}
- char
remarkStorage
[_remarksize+1];
- fs.read (
r
emarkStorage, _remarksize);
+ char
* pszRemarkStorage = new char
[_remarksize+1];
+ fs.read (
pszR
emarkStorage, _remarksize);
if (! fs) {
sys_error (ERR_SEVERE, "Error reading remark, _remarksize = %d", _remarksize);
return false;
}
if (! fs) {
sys_error (ERR_SEVERE, "Error reading remark, _remarksize = %d", _remarksize);
return false;
}
- remarkStorage[_remarksize] = 0;
- m_remark = remarkStorage;
+ pszRemarkStorage[_remarksize] = 0;
+ m_remark = pszRemarkStorage;
+ delete pszRemarkStorage;
\r
off_t _hsizeread = fs.tellg();
if (!fs || _hsizeread != _hsize) {
off_t _hsizeread = fs.tellg();
if (!fs || _hsizeread != _hsize) {