aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--swaybar/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybar/config.c b/swaybar/config.c
index fddea791..6b9ff86b 100644
--- a/swaybar/config.c
+++ b/swaybar/config.c
@@ -35,9 +35,11 @@ uint32_t parse_position(const char *position) {
char *parse_font(const char *font) {
char *new_font = NULL;
if (strncmp("pango:", font, 6) == 0) {
- new_font = strdup(font + 6);
+ font += 6;
}
+ new_font = strdup(font);
+
return new_font;
}