yaroslav
2013-06-05 11:38:17 UTC
in /sys/src/cmd/lp/lpdaemon.c:297,310
These
info.host[strlen(info.host)] = '\0';
…
info.user[strlen(info.user)] = '\0';
look nonsence as zeros are placed exactly where they already are.
Should read as in following instead:
info.host[NAMELEN] = '\0';
…
info.user[NAMELEN] = '\0';
shoudn't it?
These
info.host[strlen(info.host)] = '\0';
…
info.user[strlen(info.user)] = '\0';
look nonsence as zeros are placed exactly where they already are.
Should read as in following instead:
info.host[NAMELEN] = '\0';
…
info.user[NAMELEN] = '\0';
shoudn't it?