summaryrefslogtreecommitdiff
path: root/libps/write.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-15 05:03:35 +0000
committerMiles Bader <miles@gnu.org>1996-02-15 05:03:35 +0000
commite947cd04129948e2edb909936c212b4914a2ceea (patch)
tree1221b09c839b3859ba2a523ac447c8b60b77704c /libps/write.c
parent79aca5382fa9beb4efa67357ed0fa632323f2e16 (diff)
(ps_stream_write): Don't screw up on negative spaces.
Diffstat (limited to 'libps/write.c')
-rw-r--r--libps/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/write.c b/libps/write.c
index 98d263ae..ee315458 100644
--- a/libps/write.c
+++ b/libps/write.c
@@ -42,7 +42,7 @@ ps_stream_write (ps_stream_t stream, char *string, ssize_t max_len)
if (len > 0)
{
size_t output;
- size_t spaces_needed = stream->spaces;
+ ssize_t spaces_needed = stream->spaces;
stream->spaces = 0;
while (spaces_needed > 0)