diff options
Diffstat (limited to 'atari/clipboard.c')
-rw-r--r-- | atari/clipboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atari/clipboard.c b/atari/clipboard.c index 8c8f71781..d80599e2b 100644 --- a/atari/clipboard.c +++ b/atari/clipboard.c @@ -63,14 +63,14 @@ char *scrap_txt_read(void) {
char * buf = NULL;
char path[80];
- int file;
- int len;
if (get_scrapdir (path))
{
+ int len;
strcat (path, "scrap.txt");
len = filesize(path);
if(len > 0){
+ int file;
if ((file = (int) Fopen (path, 0)) >= 0)
{
buf = malloc(len);
|