summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-21 02:25:34 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-21 02:25:34 +0000
commit3d7a1e12241b664e362ec96e8e043f69f213a80b (patch)
treede93c6638d757836b12df29ae0d5c61bba1e4b41 /libps
parent4c173677f51826f78d7553b70e3bf9f98163f1f5 (diff)
(ps_write_int_field): Use int format for int arg.
Diffstat (limited to 'libps')
-rw-r--r--libps/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/write.c b/libps/write.c
index 8d37056c..b28ccca6 100644
--- a/libps/write.c
+++ b/libps/write.c
@@ -128,6 +128,6 @@ error_t
ps_write_int_field(int value, int width, FILE *stream, int *count)
{
char buf[20];
- sprintf(buf, "%ld", value);
+ sprintf(buf, "%d", value);
return ps_write_field(buf, width, stream, count);
}