X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fpostscript.c;h=f54ef1684f222ced82d22140d2c636c173748528;hb=2048ef1bcb81fa766ccff3bb1cf30a886316983c;hp=fbe8f6426c9815f7b9a7d931165b9bec750bac63;hpb=cf4da7ffcb1c9f1016c4fa013deb8ce40c431e19;p=pspp diff --git a/src/output/postscript.c b/src/output/postscript.c index fbe8f6426c..f54ef1684f 100644 --- a/src/output/postscript.c +++ b/src/output/postscript.c @@ -41,6 +41,7 @@ #include "font.h" #include "getline.h" #include "hash.h" +#include "intprops.h" #include "misc.h" #include "output.h" #include "manager.h" @@ -1190,20 +1191,20 @@ postopen (struct file_ext *f) {"title", 0}, {0, 0}, }; - char boundbox[INT_DIGITS * 4 + 4]; + char boundbox[INT_STRLEN_BOUND (int) * 4 + 4]; #if HAVE_UNISTD_H char host[128]; #endif - char scaling[INT_DIGITS + 5]; + char scaling[INT_STRLEN_BOUND (int) + 5]; time_t curtime; struct tm *loctime; char *p, *cp; - char paper_width[INT_DIGITS + 1]; - char paper_length[INT_DIGITS + 1]; - char left_margin[INT_DIGITS + 1]; - char top_margin[INT_DIGITS + 1]; - char line_width[INT_DIGITS + 1]; - char line_width_thick[INT_DIGITS + 1]; + char paper_width[INT_STRLEN_BOUND (int) + 1]; + char paper_length[INT_STRLEN_BOUND (int) + 1]; + char left_margin[INT_STRLEN_BOUND (int) + 1]; + char top_margin[INT_STRLEN_BOUND (int) + 1]; + char line_width[INT_STRLEN_BOUND (int) + 1]; + char line_width_thick[INT_STRLEN_BOUND (int) + 1]; struct outp_driver *this = f->param; struct ps_driver_ext *x = this->ext; @@ -2402,7 +2403,7 @@ write_text (struct outp_driver *this, int last_y; - char number[INT_DIGITS + 1]; + char number[INT_STRLEN_BOUND (int) + 1]; char line[80]; char *lp;