baskerville/bspwm — pull request #4 by c00kiemon5ter (2012-09-30 16:09:28+00:00)
Title: Rework Client

This is mainly a rework/rewrite of the client.
It does all error checking and avoids all buffer overflows.
Too long args are truncated to fit the buffer.

New lines are also stripped from _response_ messages.
A response is a simple string, not a complete line.
The way a response is printed should be handled by the client (using `printf` or similar..)

**do not pull this yet**

I've introduced two functions that allow different kind of logging - `warn()` and `err()`
`err` is very similar to `die` (that I hadn't seen until a while ago :P)

I would propose to split those from the client and include
them on either `common.h` or `helpers.h` or `misc.h/c` .
I actually cannot see much difference between those three headers.
I would probably merge if not all three, _common_ and _helpers_.

tell me what you think when you get the time to look into it
thanks