mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 14:47:29 -04:00
Clean up printability test in dbase code.
This commit is contained in:
parent
22b305ad4a
commit
a9953097f4
1 changed files with 2 additions and 2 deletions
|
|
@ -334,7 +334,7 @@ dbf_get_record(dbhead * dbh, field * fields, u_long rec)
|
|||
{
|
||||
end = &dbffield[fields[t].db_flen - 1];
|
||||
i = fields[t].db_flen;
|
||||
while ((i > 0) && ((*end < 0x21) || (*end > 0x7E)))
|
||||
while (i > 0 && !isprint(*end))
|
||||
{
|
||||
end--;
|
||||
i--;
|
||||
|
|
@ -346,7 +346,7 @@ dbf_get_record(dbhead * dbh, field * fields, u_long rec)
|
|||
{
|
||||
end = dbffield;
|
||||
i = fields[t].db_flen;
|
||||
while ((i > 0) && ((*end < 0x21) || (*end > 0x7E)))
|
||||
while (i > 0 && !isprint(*end))
|
||||
{
|
||||
end++;
|
||||
i--;
|
||||
|
|
|
|||
Loading…
Reference in a new issue