projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b305a
)
Clean up printability test in dbase code.
author
Bruce Momjian
<bruce@momjian.us>
Wed, 10 Sep 2003 00:33:51 +0000
(
00:33
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Wed, 10 Sep 2003 00:33:51 +0000
(
00:33
+0000)
contrib/dbase/dbf.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/dbase/dbf.c
b/contrib/dbase/dbf.c
index 764ffcfc56d735bf6842a6d02af5809987b904da..bed75c7fad0081461a95615284cbae958d60cb3d 100644
(file)
--- a/
contrib/dbase/dbf.c
+++ b/
contrib/dbase/dbf.c
@@
-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--;