aboutsummaryrefslogtreecommitdiffstats
path: root/conv.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-10-12 18:51:28 +0200
committerMattias Andrée <maandree@kth.se>2020-10-12 18:51:28 +0200
commitb7a164c2d1f3ad9e551ec2f98c502b262f1eb6cd (patch)
tree394d07ba47486bd9e4479ae807bdd21a07eab137 /conv.c
parentAdd apps/org.inkscape.Inkscape and apps/wire-desktop (diff)
downloadsimple-icon-theme-b7a164c2d1f3ad9e551ec2f98c502b262f1eb6cd.tar.gz
simple-icon-theme-b7a164c2d1f3ad9e551ec2f98c502b262f1eb6cd.tar.bz2
simple-icon-theme-b7a164c2d1f3ad9e551ec2f98c502b262f1eb6cd.tar.xz
Make it easy to change the colours
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--conv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/conv.c b/conv.c
index 7c5480e..3decbfd 100644
--- a/conv.c
+++ b/conv.c
@@ -12,7 +12,7 @@ static char *argv0;
static int
single(int argc, char *argv[])
{
- char size[10], target[4096], source[4096];
+ char size[256], target[4096], source[4096];
char *p;
ssize_t r;
int fd;
@@ -24,7 +24,7 @@ single(int argc, char *argv[])
stpcpy(size, argv[0]);
*p = 'x';
- p = strchr(p, '/');
+ p = &p[strcspn(p, "-/")];
if (!p)
return 1;
p = stpcpy(stpcpy(source, "scalable"), p);
@@ -90,7 +90,7 @@ multi(int argc, char *argv[])
source = *argv++, argc--;
- q = strchr(source, '/');
+ q = &source[strcspn(source, "-/")];
if (!q)
return 1;