begin quoting Rodolfo kix Garcia as of Mon, Jan 16, 2012 at 09:04:45AM +0100:
> On 16/01/12 08:31, Rodolfo kix Garcia wrote:
[chop]
> > snprintf(buffer, DOCK_NAME_LEN -1, _("Type the name for workspace %i:"),
> > wks_no + 1);
>
> buffer[DOCK_NAME_LEN -1] = '/0';
>
> Can help too.
Surely \0 is meant and not /0.
And stylistically, I assert that it's clearer to write
buffer[DOCK_NAME_LEN - 1]
than
buffer[DOCK_NAME_LEN -1]
...but that's just a pet peeve of mine, since I read "-1" as being "one less
than zero", so "-1" might as well be "5", or x. I can't be the only one who
does this...
-Stewart
--
To unsubscribe, send mail to [email protected].