Instead of messing around with sprintf, use asprintf to do the allocation
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 14 Jan 2005 07:14:15 +0000 (07:14 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Fri, 14 Jan 2005 07:14:15 +0000 (07:14 +0000)
commitf0419765d178b22130b4e10f19deda7ddd7a1e9f
tree2637d2b92f84953c89d5dd418c4c7ae1aa3bc419
parent14425adcb044e96172146d106c43a7ea0c45e716
Instead of messing around with sprintf, use asprintf to do the allocation
for us. Don't read before the start of the string, if "" is passed in.
sbin/ccdconfig/ccdconfig.c