66bd09729f
- regen patches
22 lines
728 B
Plaintext
22 lines
728 B
Plaintext
$OpenBSD: patch-grops_ps_cc,v 1.3 2010/05/09 21:26:54 robert Exp $
|
|
--- grops/ps.cc.orig Sun May 9 22:33:01 2010
|
|
+++ grops/ps.cc Sun May 9 22:33:01 2010
|
|
@@ -684,7 +684,7 @@ void ps_printer::define_encoding(const char *encoding,
|
|
fatal("can't open encoding file `%1'", encoding);
|
|
int lineno = 1;
|
|
char buf[256];
|
|
- while (fgets(buf, 512, fp) != 0) {
|
|
+ while (fgets(buf, 256, fp) != 0) {
|
|
char *p = buf;
|
|
while (csspace(*p))
|
|
p++;
|
|
@@ -1506,7 +1506,7 @@ int main(int argc, char **argv)
|
|
}
|
|
case 'c':
|
|
if (sscanf(optarg, "%d", &ncopies) != 1 || ncopies <= 0) {
|
|
- error("bad number of copies `%s'", optarg);
|
|
+ error("bad number of copies `%1'", optarg);
|
|
ncopies = 1;
|
|
}
|
|
break;
|