projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b815c86
)
Fix PostScript segfault when active file lacks a title.
author
Ben Pfaff
<blp@gnu.org>
Sun, 5 Mar 2006 21:21:29 +0000
(21:21 +0000)
committer
Ben Pfaff
<blp@gnu.org>
Sun, 5 Mar 2006 21:21:29 +0000
(21:21 +0000)
src/output/ChangeLog
patch
|
blob
|
history
src/output/postscript.c
patch
|
blob
|
history
diff --git
a/src/output/ChangeLog
b/src/output/ChangeLog
index 4f2d1810933999cb1362109a0a428b374dfb133c..a33c27f9221a2a26a8a421f379dfa53db3d0b150 100644
(file)
--- a/
src/output/ChangeLog
+++ b/
src/output/ChangeLog
@@
-1,3
+1,8
@@
+Sun Mar 5 13:19:32 2006 Ben Pfaff <blp@gnu.org>
+
+ * postscript.c: (postopen) Fix segfault when the active file has
+ no title.
+
Sat Mar 4 13:48:16 2006 Ben Pfaff <blp@gnu.org>
We didn't provide a way to define these macros, so obviously
diff --git
a/src/output/postscript.c
b/src/output/postscript.c
index 1a2f256b8e9122d3c0763a4925f1b6e15dc70413..a4c54015bcce1a60766cb73bbbd77e19cbb2a437 100644
(file)
--- a/
src/output/postscript.c
+++ b/
src/output/postscript.c
@@
-1393,8
+1393,8
@@
postopen (struct file_ext *f)
if (!outp_title)
{
- dict[16].value = cp = local_alloc (
strlen (dict[17].value) + 30
);
- s
printf (cp, "PSPP (%s)", dict[17].value
);
+ dict[16].value = cp = local_alloc (
16
);
+ s
trcpy (cp, "PSPP"
);
}
else
{