ryanflannery/oxbar

I can't build oxbar on OpenBSD 7.5

ssh3 opened this issue · 5 comments

ssh3 commented

Hi, many thanks for your work. :)

I used the last version.

alex@balamut:oxbar$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
alex@balamut:oxbar$ git pull
Already up to date.

Buiding

alex@balamut:oxbar$ make
cc -O2 -pipe  -c -std=c89 -Wall -Wextra -Werror -O2 `pkg-config --cflags pangocairo` settings.c
settings.c:659:49: error: 'sscanf' may overflow; destination buffer in argument 3 has size 100, but the corresponding specifier may require size 101 [-Werror,-Wfortify-source]
                if (1 == sscanf(line, " [%100[-a-zA-Z0-9]] ", theme_name)) {
                                                              ^
1 error generated.
*** Error 1 in /home/alex/src/oxbar (Makefile:38 'settings.o')

Let me know if you need more details.

ssh3 commented

@uwerler

Hello.

No, I don't have this problem.

oxbar

@uwerler

Not having any resource issues here either. It's unlikely fixing that compiler error would cause that.

That said, I have found a few other bugs in the codebase, so perhaps you've encountered yet another one. The most annoying for me is that it'll core dump if it doesn't have an active network connection upon startup. This happens whenever I'm on the road with my OpenBSD laptop and haven't set up my USB tether yet.

So yeah, there's still some issues.