cvs commit: hugs98/src input.c

Ross Paterson ross@soi.city.ac.uk
Fri, 19 Jul 2002 20:44:51 +0100


Sigbjorn,

>   Modified files:
>     src                  input.c 
>   Log:
>   - fix silly snprintf() usage bug in prev commit.

Under glibc 2.2.5, snprintf copies n bytes including the \0, so this
version drops the last character of the filename.  But I don't see why
this contortion is necessary anyway, since we just malloc'ed an array
of exactly the right size.

Ross