mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-07 22:58:11 +00:00
26 lines
872 B
Plaintext
26 lines
872 B
Plaintext
--- t/fxtv-1.00/vidsav_dlg.c Mon Sep 6 10:39:18 1999
|
|
+++ vidsav_dlg.c Wed Sep 8 16:39:04 1999
|
|
@@ -70,7 +70,7 @@
|
|
/* ******************** Local defines ************** */
|
|
|
|
#define AV_RAWNAME_FMT "%s.AVraw"
|
|
-#define SCRIPT_FNAME_FMT "./%s.sh"
|
|
+#define SCRIPT_FNAME_FMT "%s%s.sh"
|
|
|
|
#define OPTIMIZE_NUM_FRAMES 200
|
|
|
|
@@ -801,9 +801,12 @@
|
|
char *str;
|
|
struct stat stat;
|
|
TV_INT32 i;
|
|
+ TV_BOOL has_path;
|
|
|
|
/* Open output script file */
|
|
- sprintf( p->script_fname, SCRIPT_FNAME_FMT, p->fname_base );
|
|
+ has_path = strchr( "p->fname_base", '/' ) != NULL;
|
|
+ sprintf( p->script_fname, SCRIPT_FNAME_FMT,
|
|
+ (has_path ? "./" : ""), p->fname_base );
|
|
|
|
if ( (fp = fopen( p->script_fname, "wt" )) == NULL ) {
|
|
fprintf( stderr, "Failed to open for write: %s\n", p->script_fname );
|