projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add clip folders, icon margins, fix safe regions, update neophyte, fix folder edl...
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
filexml.C
diff --git
a/cinelerra-5.1/cinelerra/filexml.C
b/cinelerra-5.1/cinelerra/filexml.C
index 065dce7db07758c48a49b9a6366a3dac0e0180e1..f474317853562554b3a36b9429adc3352ff90bc3 100644
(file)
--- a/
cinelerra-5.1/cinelerra/filexml.C
+++ b/
cinelerra-5.1/cinelerra/filexml.C
@@
-73,9
+73,10
@@
XMLBuffer::~XMLBuffer()
if( destroy ) delete [] bfr;
}
if( destroy ) delete [] bfr;
}
-
unsigned char *&
XMLBuffer::demand(long len)
+
int
XMLBuffer::demand(long len)
{
if( len > bsz ) {
{
if( len > bsz ) {
+ if( !destroy ) return 0;
long sz = inp-bfr;
len += sz/2 + BCTEXTLEN;
unsigned char *np = new unsigned char[len];
long sz = inp-bfr;
len += sz/2 + BCTEXTLEN;
unsigned char *np = new unsigned char[len];
@@
-85,13
+86,13
@@
unsigned char *&XMLBuffer::demand(long len)
lmt = np + len; bsz = len;
delete [] bfr; bfr = np;
}
lmt = np + len; bsz = len;
delete [] bfr; bfr = np;
}
- return
bfr
;
+ return
1
;
}
int XMLBuffer::write(const char *bp, int len)
{
}
int XMLBuffer::write(const char *bp, int len)
{
- if( !destroy && lmt-inp < len ) len = lmt-inp;
if( len <= 0 ) return 0;
if( len <= 0 ) return 0;
+ if( !destroy && lmt-inp < len ) len = lmt-inp;
demand(otell()+len);
memmove(inp,bp,len);
inp += len;
demand(otell()+len);
memmove(inp,bp,len);
inp += len;
@@
-324,8
+325,12
@@
int XMLTag::read_tag(FileXML *xml)
else
term = ' ';
value_start = buf->itell()-1;
else
term = ' ';
value_start = buf->itell()-1;
- while( ch >= 0 && (ch!=term && ch!=right_delm && ch!='\n') )
+ while( ch >= 0 ) {
+// old edl bug work-around, allow nl in quoted string
+ if( ch==term || ch==right_delm ) break;
+ if( ch=='\n' && term!='\"' ) break;
ch = buf->next();
ch = buf->next();
+ }
if( ch < 0 ) EOB_RETURN();
value_end = buf->itell()-1;
// add property
if( ch < 0 ) EOB_RETURN();
value_end = buf->itell()-1;
// add property