diff options
author | N.N. <matju@users.sourceforge.net> | 2009-05-14 01:11:54 +0000 |
---|---|---|
committer | N.N. <matju@users.sourceforge.net> | 2009-05-14 01:11:54 +0000 |
commit | ddcdf6e2465707ec6e0609b3793b7ffc618ff460 (patch) | |
tree | 723a077ed23a43e08045ebf69e727d495fe7eac1 | |
parent | a3fd981fcacbcf5d3eaf051400d56a24442cda5e (diff) |
fix warning getcwd
svn path=/trunk/; revision=11337
-rw-r--r-- | desiredata/src/desire.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |