diff options
author | Mattias Andrée <maandree@kth.se> | 2020-10-12 18:51:28 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-10-12 18:51:28 +0200 |
commit | b7a164c2d1f3ad9e551ec2f98c502b262f1eb6cd (patch) | |
tree | 394d07ba47486bd9e4479ae807bdd21a07eab137 /conv.c | |
parent | Add apps/org.inkscape.Inkscape and apps/wire-desktop (diff) | |
download | simple-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |