about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDaniel Santos <dan.git@brilhante.top>2023-05-10 18:52:55 +0100
committerDaniel Santos <dan.git@brilhante.top>2023-07-01 10:08:20 +0100
commit953e3cc1204cde0f59c0d1230694b5ad5682c698 (patch)
treef8c523cae74f5c6186e8d576c0c9209baa394656
parent439406a0def941b18850685174dde5daaca7dbf0 (diff)
downloadprofani-tty-953e3cc1204cde0f59c0d1230694b5ad5682c698.tar.gz
save file as a *-0 instead of *.0 HEAD main
Signed-off-by: Daniel Santos <dan.git@brilhante.top>
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index d2bbc1c6..0395f71c 100644
--- a/src/common.c
+++ b/src/common.c
@@ -561,7 +561,7 @@ _unique_filename(const char* filename)
             return NULL;
         }
 
-        unique = g_strdup_printf("%s.%u", filename, i);
+        unique = g_strdup_printf("%s-%u", filename, i);
         if (!unique) {
             return NULL;
         }