Просмотр исходного кода

fix: `totp export` command uses the wrong format to print url-encoded symbol.

Even though it doesn't directly affect user experience, but still would like to correct it
alex.kopachov 1 год назад
Родитель
Сommit
514a494cf9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cli/plugins/export/export.c

+ 1 - 1
cli/plugins/export/export.c

@@ -41,7 +41,7 @@ static void print_uri_component(const char* data, size_t length) {
            c == '-' || c == '_') {
             putchar(c);
         } else {
-            printf("%%%x", c);
+            printf("%%%02x", c);
         }
         c_ptr++;
     }