projects
/
platform
/
upstream
/
gnome-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
764bc65
)
1) changed popt's ternary operator to work properly
r1-0
r2-4-3
r2-4-4
r2-4-5
r2-4-6
r2-4-7
r2-4-8
r2-4-9
author
Erik Troan
<ewt@src.gnome.org>
Mon, 7 Jul 1997 22:22:51 +0000
(22:22 +0000)
committer
Erik Troan
<ewt@src.gnome.org>
Mon, 7 Jul 1997 22:22:51 +0000
(22:22 +0000)
2) popt doesn't take \ at the end of a line as a newline
3) fixed --scripts in rpmpopt to take advantage of #1
svn path=/trunk/; revision=28
support/popt.c
patch
|
blob
|
history
diff --git
a/support/popt.c
b/support/popt.c
index
bc24b9b
..
d4dee02
100644
(file)
--- a/
support/popt.c
+++ b/
support/popt.c
@@
-451,7
+451,8
@@
int poptReadConfigFile(poptContext con, char * fn) {
*dst++ = *chptr++;
if (chptr < end) {
if (*chptr == '\n')
- *(dst - 1) = *chptr++;
+ dst--, chptr++;
+ /* \ at the end of a line does not insert a \n */
else
*dst++ = *chptr++;
}