From ddcdf6e2465707ec6e0609b3793b7ffc618ff460 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Thu, 14 May 2009 01:11:54 +0000 Subject: fix warning getcwd svn path=/trunk/; revision=11337 --- desiredata/src/desire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desiredata/src/desire.c b/desiredata/src/desire.c index 8a7a0aba..a4a2cdf3 100644 --- a/desiredata/src/desire.c +++ b/desiredata/src/desire.c @@ -6983,7 +6983,7 @@ extern "C" t_socketreceiver *netreceive_newest_receiver(t_text *x); void glob_initfromgui(void *dummy, t_symbol *s) { char buf[256], buf2[256]; char cwd[666]; - getcwd(cwd,665); + if (!getcwd(cwd,665)) strcpy(cwd,"actual_name_is_way_too_long.oops"); sys_socketreceiver=netreceive_newest_receiver(sys_netreceive); sys_vgui("%s",lost_posts.str().data()); /* load dynamic libraries specified with "-lib" args */ -- cgit v1.2.1