diff options
Diffstat (limited to 'source3/printing/pcap.c')
-rw-r--r-- | source3/printing/pcap.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 86489e9587..4bca63fffb 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -241,12 +241,15 @@ static BOOL ScanQconfig(char *psz,char *pszPrintername) Scan printcap file pszPrintcapname for a printer called pszPrintername. Return True if found, else False. Returns False on error, too, after logging the error at level 0. For generality, the printcap name may be passed - if -passed as NULL, the configuration will be queried for the name. +passed as NULL, the configuration will be queried for the name. pszPrintername +must be in DOS codepage. +The xxx_printername_ok functions need fixing to understand they are being +given a DOS codepage. FIXME !! JRA. ***************************************************************************/ -BOOL pcap_printername_ok(const char *pszPrintername, const char *pszPrintcapname) +BOOL pcap_printername_ok(char *pszPrintername, char *pszPrintcapname) { char *line=NULL; - const char *psz; + char *psz; char *p,*q; XFILE *pfile; @@ -302,6 +305,8 @@ BOOL pcap_printername_ok(const char *pszPrintername, const char *pszPrintcapname if (strequal(p,pszPrintername)) { + /* normalise the case */ + pstrcpy(pszPrintername,p); SAFE_FREE(line); x_fclose(pfile); return(True); |