mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-21 01:42:18 +00:00
Fix minor bug in export HLR function:
- treat ascii 127 (del) as not printable
This commit is contained in:
parent
6d8089031b
commit
cc4835e169
2
export.c
2
export.c
@ -241,7 +241,7 @@ int exportHlr(unsigned char *hlr_file,char *text)
|
||||
cols=0;
|
||||
for (i=0;i<h->value_len;i++)
|
||||
{
|
||||
if (h->value[i]>=' '&&h->value[i]<=0x7f&&h->value[i]!='\\'&&(cols||h->value[i]!='#'))
|
||||
if (h->value[i]>=' '&&h->value[i]<0x7f&&h->value[i]!='\\'&&(cols||h->value[i]!='#'))
|
||||
{
|
||||
fprintf(o,"%c",h->value[i]);
|
||||
cols++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user