X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fpapd%2Flp.c;h=3b817b9f4d3c7d1cdca4d496ad517b9dafcdf377;hb=5f5367aa2eedd7e8538566a83d163cc549c9d68f;hp=017cee89f6de460e90d9dd1b097611f04bc0de9f;hpb=008eac9cd4113c38090c803b1236335158fcc64c;p=netatalk.git diff --git a/etc/papd/lp.c b/etc/papd/lp.c index 017cee89..3b817b9f 100644 --- a/etc/papd/lp.c +++ b/etc/papd/lp.c @@ -1,5 +1,5 @@ /* - * $Id: lp.c,v 1.29 2009-10-14 01:38:28 didg Exp $ + * $Id: lp.c,v 1.31 2009-10-22 13:40:11 franklahm Exp $ * * Copyright (c) 1990,1994 Regents of The University of Michigan. * All Rights Reserved. See COPYRIGHT. @@ -127,7 +127,7 @@ static void convert_octal (char *string, charset_t dest) char temp[4]; long int ch; - q=p=string; + q=p=(unsigned char *)string; while ( *p != '\0' ) { ch = 0; if ( *p == '\\' ) { @@ -208,6 +208,8 @@ static void lp_setup_comments (charset_t dest) #define is_var(a, b) (strncmp((a), (b), 2) == 0) +#if 0 +/* removed, it's not used and a pain to get it right from a security POV */ static size_t quote(char *dest, char *src, const size_t bsize, size_t len) { size_t used = 0; @@ -234,7 +236,6 @@ size_t used = 0; return used; } - static char* pipexlate(char *src) { char *p, *q, *dest; @@ -302,7 +303,7 @@ static char* pipexlate(char *src) } return destbuf; } - +#endif void lp_person(char *person) {