Fix various compiler warnings.

This commit is contained in:
Guus Sliepen 2012-07-21 13:53:22 +02:00
parent b161088b35
commit 4e0fc52197
4 changed files with 6 additions and 110 deletions

View file

@ -688,10 +688,8 @@ static int cmd_start(int argc, char *argv[]) {
slash = c;
#endif
if (slash++) {
c = xmalloc((slash - argv[0]) + sizeof("tincd"));
sprintf(c, "%.*stincd", (int)(slash - argv[0]), argv[0]);
}
if (slash++)
xasprintf(&c, "%.*stincd", (int)(slash - argv[0]), argv[0]);
else
c = "tincd";