1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

fix problems with using inf files from HP for DesignJet 750C (C3195A)

This commit is contained in:
Herb Lewis 0001-01-01 00:00:00 +00:00
parent 6b3d4620c1
commit 4e258eecf7

View File

@ -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);