aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 442446d..854895d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3,6 +3,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
+#include <libgen.h>
#include "login.h"
#include "util.h"
@@ -54,7 +55,7 @@ main(int argc, char **argv)
visibility = optarg;
break;
case 'F':
- upload_file(optarg,optarg,&id_ptr);
+ upload_file(optarg,basename(optarg),&id_ptr);
break;
}