Be more defensive in writing to the sig buffer
Merge pull request #16 from hawkinswnaf/serval-plugin

Be more defensive in writing to the sig buffer

tested by areynold, dismantl