Skip to content
Snippets Groups Projects
Commit b5a23fda authored by rswindell's avatar rswindell
Browse files

Invalid ctrl-a sequences are now elimianted from extended file descriptions

in putextdesc().
parent ba410049
No related branches found
No related tags found
No related merge requests found
......@@ -644,6 +644,7 @@ void DLLCALL putextdesc(scfg_t* cfg, uint dirnum, ulong datoffset, char *ext)
char str[256],nulbuf[F_EXBSIZE];
int file;
strip_invalid_attr(ext); /* eliminate bogus ctrl-a codes */
memset(nulbuf,0,sizeof(nulbuf));
sprintf(str,"%s%s.exb",cfg->dir[dirnum]->data_dir,cfg->dir[dirnum]->code);
if((file=nopen(str,O_WRONLY|O_CREAT))==-1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment