Skip to content

Commit

Permalink
Handle memofield ascii field number char is null
Browse files Browse the repository at this point in the history
Thanks, Andrey Vostrikov!
  • Loading branch information
kstrauser committed Sep 8, 2014
1 parent 920c28d commit baa1d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pgdbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ int main(int argc, char **argv) {
memoblocknumber = 0;
s = bufoffset;
for(i = 0; i < 10; i++) {
if(*s != 32) {
if(*s && *s != 32) {
/* I'm unaware of any non-ASCII
* implementation of XBase. */
memoblocknumber = memoblocknumber * 10 + *s - '0';
Expand Down

0 comments on commit baa1d95

Please sign in to comment.