[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for xchat to compile on the Hurd
From: |
Christopher Bodenstein |
Subject: |
patch for xchat to compile on the Hurd |
Date: |
Tue, 25 Jan 2005 09:07:01 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
Good morning :)
Here is a small patch to be able to compile xchat on the Hurd. Since I
don't personaly use python plugins in xchat, I'm not sure it really
works, so it'd be nice if someone using such plugins could try it ;)
Have a nice day,
Best regards,
Chris
--- xchat-2.4.1/plugins/python/python.c 2004-10-18 14:12:21.000000000 +0200
+++ xchat-2.4.1/plugins/python/python.c 2005-01-23 15:23:03.000000000 +0100
@@ -327,11 +327,14 @@ Util_BuildList(char *word[])
static void
Util_Autoload()
{
- char oldcwd[PATH_MAX];
+ /* char oldcwd[PATH_MAX]; */
+ char curdirname = get_current_dir_name();
+ char oldcwd[sizeof(curdirname)];
const char *dir_name;
struct dirent *ent;
DIR *dir;
- if (getcwd(oldcwd, PATH_MAX) == NULL)
+ /* if (getcwd(oldcwd, PATH_MAX) == NULL) */
+ if (getcwd(oldcwd, sizeof(curdirname)) == NULL)
return;
/* we need local filesystem encoding for chdir, opendir etc */
dir_name = xchat_get_info(ph, "xchatdirfs");
--
,''`. Christopher `Physicman' Bodenstein <cb@physicman.net>
: :' : Physicman.Net : http://www.physicman.net/
`. `' Debian GNU/Hurd : http://www.debian.org/ports/hurd/
`- The Hurd wiki : http://hurd.gnufans.org/
signature.asc
Description: Digital signature
- patch for xchat to compile on the Hurd,
Christopher Bodenstein <=