projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f48454
)
instant: fix infinite loop seen in non-C locales
author
Jon Trulson
<jon@radscan.com>
Wed, 20 Jun 2012 02:02:56 +0000
(20:02 -0600)
committer
Jon Trulson
<jon@radscan.com>
Wed, 20 Jun 2012 02:02:56 +0000
(20:02 -0600)
cde/programs/dtdocbook/instant/main.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtdocbook/instant/main.c
b/cde/programs/dtdocbook/instant/main.c
index 2de16a88c18561de8c97376bc58e5985e548749b..2a917639cdac83f5d756712bb3d4d457d193a9d9 100644
(file)
--- a/
cde/programs/dtdocbook/instant/main.c
+++ b/
cde/programs/dtdocbook/instant/main.c
@@
-455,7
+455,10
@@
static int CompareI18NStrings(ClientData clientData,
}
cp++;
} else {
+ if (len > 0)
cp += len;
+ else
+ break; /* JET - we should be done here... */
}
}
cp = argv[2];
@@
-466,7
+469,10
@@
static int CompareI18NStrings(ClientData clientData,
}
cp++;
} else {
+ if (len > 0)
cp += len;
+ else
+ break; /* JET - we should be done here... */
}
}