Subject: Re: need volunteer for scilab pkg test
To: None <mcmahill@mtl.mit.edu>
From: Zdenek Salvet <salvet@ics.muni.cz>
List: tech-pkg
Date: 08/19/1998 21:27:36
> Under the "File" menu in the main scilab window, choose "File
> Operations". When the file dialog box comes, select "auto.tst" with
> the mouse. Now press the "Exec" button. At this point, bug#2
> appears. On the mac, the program simply exits right away. On the
They have inconsistent getcwd() buffer length parameter and
length of actual buffer.
diff -ru work/scilab-2.4/routines/system/scicurdir.c work.corr/scilab-2.4/routines/system/scicurdir.c
--- work/scilab-2.4/routines/system/scicurdir.c Mon May 4 10:48:30 1998
+++ work.corr/scilab-2.4/routines/system/scicurdir.c Wed Aug 19 21:05:58 1998
@@ -44,7 +44,7 @@
*err=1;
}
/** a rajouter en XWindow ? pour transmettre l'info au menu
- if (get_directory(cur_dir)==0)
+ if (get_directory()==0)
*err=1; **/
return 0;
}
diff -ru work/scilab-2.4/routines/xsci/wf_f_util.c work.corr/scilab-2.4/routines/xsci/wf_f_util.c
--- work/scilab-2.4/routines/xsci/wf_f_util.c Tue May 5 15:18:17 1998
+++ work.corr/scilab-2.4/routines/xsci/wf_f_util.c Wed Aug 19 20:48:59 1998
@@ -73,7 +73,7 @@
#endif
-#if defined(SYSV) || defined(SVR4)
+#if defined(SYSV) || defined(SVR4) || defined(__NetBSD__)
if (getcwd(cur_dir, 1024) == NULL) { /* get current working dir */
put_msg("Can't get current directory");
#else
diff -ru work/scilab-2.4/routines/xsci/wf_w_file.c work.corr/scilab-2.4/routines/xsci/wf_w_file.c
--- work/scilab-2.4/routines/xsci/wf_w_file.c Tue May 5 15:19:50 1998
+++ work.corr/scilab-2.4/routines/xsci/wf_w_file.c Wed Aug 19 20:52:54 1998
@@ -1,4 +1,4 @@
-#define FSIZE 200
+#define FSIZE 1024
char cur_dir[FSIZE];
char cur_filename[FSIZE];
--
Zdenek Salvet salvet@ics.muni.cz
----------------------------------------------------------------------------
If God had meant for us to be in the Army,
we would have been born with green, baggy skin.