d5c1f39165
we had, like better support for foreign languages and the usual plethora of bugfixes. tested on various architectures and with various applications that use CUPS as their printing system. I verified that all ports that are depending on CUPS still build.
30 lines
912 B
Plaintext
30 lines
912 B
Plaintext
$OpenBSD: patch-systemv_lpadmin_c,v 1.2 2006/10/01 10:43:38 mbalmer Exp $
|
|
--- systemv/lpadmin.c.orig Wed Sep 20 11:33:18 2006
|
|
+++ systemv/lpadmin.c Wed Sep 20 11:34:30 2006
|
|
@@ -1963,14 +1963,14 @@ set_printer_options(
|
|
static int /* O - 0 if name is no good, 1 if name is good */
|
|
validate_name(const char *name) /* I - Name to check */
|
|
{
|
|
- const char *ptr; /* Pointer into name */
|
|
+ const signed char *ptr; /* Pointer into name */
|
|
|
|
|
|
/*
|
|
* Scan the whole name...
|
|
*/
|
|
|
|
- for (ptr = name; *ptr; ptr ++)
|
|
+ for (ptr = (const signed char *)name; *ptr; ptr ++)
|
|
if (*ptr == '@')
|
|
break;
|
|
else if ((*ptr >= 0 && *ptr <= ' ') || *ptr == 127 || *ptr == '/' ||
|
|
@@ -1981,7 +1981,7 @@ validate_name(const char *name) /* I -
|
|
* All the characters are good; validate the length, too...
|
|
*/
|
|
|
|
- return ((ptr - name) < 128);
|
|
+ return ((ptr - (const signed char *)name) < 128);
|
|
}
|
|
|
|
|