[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] Bug with bind
From: |
sabetts |
Subject: |
Re: [RP] Bug with bind |
Date: |
Mon, 27 Aug 2001 11:16:10 -0700 (PDT) |
At 27 Aug 2001 11:25:46 +0200 , Manuel Giraud <address@hidden> wrote:
>Gergely Nagy <address@hidden> writes:
>
>> Hi there!
>>
>> > I'm able to make ratpoison crash typing this :
>> >
>> > C-t : bind l RET
>> >
>> > (i.e. using bind w/ a key but w/o a function)
>> >
>>
>> What version of ratpoison are you using? I cannot reproduce this with
>> a few days old CVS snapshot.
>>
>
>This is CVS snapshot I update this morning but I'm using ratpoison on a
>DEC/Alpha with OSF (don't know what kind of X server it is).
>
>I also have to modify the code a little bit :
> - replace vsnprintf with vsprintf
> - replace snprintf with sprintf
>because these functions are not in the OSF library. Maybe the bug
>comes from these modifications but 'sprintf' works perfectly when
>saying that a key is not bound.
This is the problem. vsnprintf and snprintf return the number of characters
that would have been put in the string had it been long enough I don't think
sprintf does this and as a result marked_message_printf crashes. Off the top of
my head I'm not sure how you would fix this. I'm surprised snprintf isn't part
of OSF!