summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-01-21 09:20:20 +0000
committerHerb Lewis <herb@samba.org>1998-01-21 09:20:20 +0000
commit79a3da42ce003380be64823b285feb9ccfa4b2af (patch)
tree5410c3deda4f159e10f85e288df5860c6eabac9d /source
parent916ecc0c0535108cd6079eb3f1bbda3918169ee9 (diff)
downloadsamba-79a3da42ce003380be64823b285feb9ccfa4b2af.tar.gz
samba-79a3da42ce003380be64823b285feb9ccfa4b2af.tar.xz
samba-79a3da42ce003380be64823b285feb9ccfa4b2af.zip
fix bug with using inf files from HP for DesignJet 750C (C3195A)
Diffstat (limited to 'source')
-rw-r--r--source/utils/make_printerdef.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/utils/make_printerdef.c b/source/utils/make_printerdef.c
index ef890163f04..ce61f460ff3 100644
--- a/source/utils/make_printerdef.c
+++ b/source/utils/make_printerdef.c
@@ -157,7 +157,7 @@ char *find_desc(FILE *fichier,char *text)
fgets(chaine,255,fichier);
long_desc=strtok(chaine,"=");
- crap=strtok(NULL,",");
+ crap=strtok(NULL,",\r");
p=long_desc;
while(*p!='"' && *p!='\0')
@@ -217,6 +217,9 @@ void scan_copyfiles(FILE *fichier, char *chaine)
}
i=0;
while (*buffer[i]!='\0') {
+ part = &buffer[i][strlen(buffer[i])-1];
+ if (*part == '=')
+ *part = '\0';
if (strlen(files_to_copy) != 0)
strcat(files_to_copy,",");
strcat(files_to_copy,direc);