git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3d462
)
fix problems with using inf files from HP for DesignJet 750C (C3195A)
author
Herb Lewis
<herb@samba.org>
Wed, 21 Jan 1998 09:17:51 +0000
(09:17 +0000)
committer
Herb Lewis
<herb@samba.org>
Wed, 21 Jan 1998 09:17:51 +0000
(09:17 +0000)
source/utils/make_printerdef.c
patch
|
blob
|
history
diff --git
a/source/utils/make_printerdef.c
b/source/utils/make_printerdef.c
index ef890163f0473ca83f918fbfb75e7c91d848d105..ce61f460ff33bce6c8acde45387e6279bd53cc53 100644
(file)
--- 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);