diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-13 22:10:37 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-13 22:10:37 +0200 |
commit | 0464eec0a8086cca0b5138d5ac3c24be24b4ddeb (patch) | |
tree | e31398cae8c6445be1b7f31bdfe94e4b2151005c /contrib/libxdg-basedir/basedir.c | |
parent | 743d7c6c187de958ae10552d291b2397bfd68c39 (diff) | |
download | xine-lib-0464eec0a8086cca0b5138d5ac3c24be24b4ddeb.tar.gz xine-lib-0464eec0a8086cca0b5138d5ac3c24be24b4ddeb.tar.bz2 |
Fix an off-by-one mistake in libxdg-basedir that caused /usr/share to become /usr/sharee.
Also add a diff from the original sources and add it to the distribution.
Diffstat (limited to 'contrib/libxdg-basedir/basedir.c')
-rw-r--r-- | contrib/libxdg-basedir/basedir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/libxdg-basedir/basedir.c b/contrib/libxdg-basedir/basedir.c index 942e07ba8..b0782efa2 100644 --- a/contrib/libxdg-basedir/basedir.c +++ b/contrib/libxdg-basedir/basedir.c @@ -209,6 +209,7 @@ static char** xdgSplitPath(const char* string) #endif itemlist[i][k] = string[j]; } + itemlist[i][k] = 0; /* move to next string */ string += j; if (*string == PATH_SEPARATOR_CHAR) string++; /* skip seperator */ |