summaryrefslogtreecommitdiff
path: root/gfx/cro.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/cro.c')
-rw-r--r--gfx/cro.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 9dd57de..588aad2 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -508,12 +508,14 @@ static void setup_font(struct cro_ctx *cc)
static bool cr_args(void *ctx, int argc, char *const *argv)
{
struct cro_ctx *cc = ctx;
+ const char *colon;
char c;
while ((c = getopt(argc, argv, "o:s:T")) != EOF)
switch (c) {
case 'o':
- cc->output_name = optarg;
+ colon = strchr(optarg, ':');
+ cc->output_name = colon ? colon + 1 : optarg;
break;
case 's':
cc->scale = atof(optarg) * cc->default_scale;