Re: snnewgroup: Segmentation fault on ppc systems

[email protected] (Sebastian D.B. Krause)
Newsgroups gmane.network.sn
Message-ID <[email protected]>
Chris Niekel <[email protected]> wrote:
> Besides that, the variable 'i' is also way too large. Can you run the
> following small piece of code:
>     #include <stdio.h>
>     int main()
>     {
>         int i= sizeof("../.outgoing/");
>         printf("size: %d\n", i);
>         return 0;
>     }   
>
> And give the results? My instinct told me this would be 4 (char*), but
> apparently it's 14 on my i386.

I get "size: 14", too.

> Maybe the huge 'i' has something to do with this? Maybe your
> platform has a different size than 'int' for the result of sizeof.

sizeof(int) is 4 on ppc as well.

Sebastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.