Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 98929 | Differences between
and this patch

Collapse All | Expand All

(-)ctorrent-1.3.4.orig/btfiles.cpp (-2 / +2 lines)
Lines 169-175 Link Here
169
  DIR *dp;
169
  DIR *dp;
170
  BTFILE *pbf;
170
  BTFILE *pbf;
171
171
172
  if( !getwd(full_cur) ) return -1;
172
  if( !getcwd(full_cur, MAXPATHLEN) ) return -1;
173
173
174
  if( cur_path ){
174
  if( cur_path ){
175
    strcpy(fn, full_cur);
175
    strcpy(fn, full_cur);
Lines 293-299 Link Here
293
    m_btfhead = pbf;
293
    m_btfhead = pbf;
294
  }else if( S_IFDIR & sb.st_mode ){
294
  }else if( S_IFDIR & sb.st_mode ){
295
    char wd[MAXPATHLEN];
295
    char wd[MAXPATHLEN];
296
    if( !getwd(wd) ) return -1;
296
    if( !getcwd(wd, MAXPATHLEN) ) return -1;
297
    m_directory = new char[strlen(pathname) + 1];
297
    m_directory = new char[strlen(pathname) + 1];
298
#ifndef WINDOWS
298
#ifndef WINDOWS
299
    if( !m_directory ) return -1;
299
    if( !m_directory ) return -1;
(-)ctorrent-1.3.4.orig/configure.ac (-1 / +1 lines)
Lines 32-37 Link Here
32
AC_FUNC_MEMCMP
32
AC_FUNC_MEMCMP
33
AC_TYPE_SIGNAL
33
AC_TYPE_SIGNAL
34
AC_FUNC_STAT
34
AC_FUNC_STAT
35
AC_CHECK_FUNCS([ftruncate gethostbyname gettimeofday getwd inet_ntoa memchr memmove memset mkdir select socket strchr strerror strncasecmp strstr strtol strnstr])
35
AC_CHECK_FUNCS([ftruncate gethostbyname gettimeofday getcwd inet_ntoa memchr memmove memset mkdir select socket strchr strerror strncasecmp strstr strtol strnstr])
36
36
37
AC_OUTPUT(Makefile)
37
AC_OUTPUT(Makefile)

Return to bug 98929