X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fpapd%2Flp.c;h=e077a8d5b03fb3d86d12d03b57c6d9c16b9dc866;hp=3b817b9f4d3c7d1cdca4d496ad517b9dafcdf377;hb=b8c1894353b62eb52e59d4e0150fd3c25dcd86ba;hpb=39cc274e6372f88f9cec1c5703f9a19d1ede3f5a diff --git a/etc/papd/lp.c b/etc/papd/lp.c index 3b817b9f..e077a8d5 100644 --- a/etc/papd/lp.c +++ b/etc/papd/lp.c @@ -1,5 +1,5 @@ /* - * $Id: lp.c,v 1.31 2009-10-22 13:40:11 franklahm 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. @@ -164,7 +164,7 @@ static void translate(charset_t from, charset_t dest, char **option) 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; }