diff options
author | Erik Troan <ewt@src.gnome.org> | 1997-07-07 22:22:51 +0000 |
---|---|---|
committer | Erik Troan <ewt@src.gnome.org> | 1997-07-07 22:22:51 +0000 |
commit | e23459d6b908207705df046dd0067d1976be3532 (patch) | |
tree | bf3e24db694b35b4e34deee3f56c61b8bb92c112 /support/popt.c | |
parent | 764bc655a1ddec893730a187add4c72f7c736847 (diff) | |
download | shared-mime-info-e23459d6b908207705df046dd0067d1976be3532.tar.gz |
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
Diffstat (limited to 'support/popt.c')
-rw-r--r-- | support/popt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/support/popt.c b/support/popt.c index bc24b9b9..d4dee029 100644 --- 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++; } |