"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/examples/backward.cc" between
bed-3.0.0.src.tar.xz and bed-3.0.1.src.tar.xz

About: bed is an adjustable data format binary editor.

backward.cc  (bed-3.0.0.src.tar.xz):backward.cc  (bed-3.0.1.src.tar.xz)
skipping to change at line 77 skipping to change at line 77
strcpy(label,"Backward("); strcpy(label,"Backward(");
memcpy(label+9,subfil->label,len); memcpy(label+9,subfil->label,len);
label[len+9]=')'; label[len+9]=')';
label[len+10]='\0'; label[len+10]='\0';
} }
virtual int setpart(ScreenPart *p) override { virtual int setpart(ScreenPart *p) override {
part=p; part=p;
return subfil->setpart(p); return subfil->setpart(p);
} }
virtual char *convstr(void) override { virtual char *convstr(void) override {
char *conv=subfil->convstr(); char *conv=subfil->convstr();
int lenconv=strlen(conv); int lenconv=strlen(conv);
int lenname=strlen(subfil->name);; int lenname=strlen(subfil->name);;
if(convstring) if(convstring)
delete convstring; delete convstring;
convstring=new char[lenconv+lenname+2]; convstring=new char[lenconv+lenname+2];
memcpy(convstring,subfil->name,lenname); memcpy(convstring,subfil->name,lenname);
convstring[lenname]=':'; convstring[lenname]=':';
memcpy(convstring+lenname+1,conv,lenconv+1); memcpy(convstring+lenname+1,conv,lenconv+1);
return convstring; return convstring;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)