mausezahn: Make sure '\0' is written after strncpy
commit7aebca65f569ceb5fd8a12bef5fa6b58f277683d
authorTobias Klauser <tklauser@distanz.ch>
Tue, 21 Apr 2015 14:50:23 +0000 (21 16:50 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 21 Apr 2015 14:50:23 +0000 (21 16:50 +0200)
treed24596b0445d3a21ca5db4af480aa6e71bc74ae8
parentdce80974dcd2114ebb4a3ed3060d4d636cbb9d1d
mausezahn: Make sure '\0' is written after strncpy

Make sure params is always NULL-terminated as strncpy() doesn't
guarantee this.

Closes #134

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
staging/tools.c