projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove xref to hasktags
[ghc-hetmet.git]
/
utils
/
hp2ps
/
HpFile.c
diff --git
a/utils/hp2ps/HpFile.c
b/utils/hp2ps/HpFile.c
index
1f2bf2d
..
787a268
100644
(file)
--- a/
utils/hp2ps/HpFile.c
+++ b/
utils/hp2ps/HpFile.c
@@
-416,7
+416,10
@@
GetString(infp)
i = 0;
while (ch != '\"') {
i = 0;
while (ch != '\"') {
- if (i == stringbuffersize - 1) {
+ if (ch == EOF) {
+ Error("%s, line %d: EOF when expecting \"", hpfile, linenum, ch);
+ }
+ else if (i == stringbuffersize - 1) {
stringbuffersize = 2 * stringbuffersize;
stringbuffer = xrealloc(stringbuffer, stringbuffersize);
}
stringbuffersize = 2 * stringbuffersize;
stringbuffer = xrealloc(stringbuffer, stringbuffersize);
}