/*
- * $Id: lp.c,v 1.30 2009-10-16 01:10:59 didg Exp $
+ * $Id: lp.c,v 1.32 2009-10-29 11:35:58 didg Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
char temp[4];
long int ch;
- q=p=string;
+ q=p=(unsigned char *)string;
while ( *p != '\0' ) {
ch = 0;
if ( *p == '\\' ) {
if (*option != NULL) {
convert_octal(*option, from);
if (from) {
- if ((size_t) -1 != (convert_string_allocate(from, dest, *option, strlen(*option), &translated)) ) {
+ if ((size_t) -1 != (convert_string_allocate(from, dest, *option, -1, &translated)) ) {
free (*option);
*option = translated;
}