#endif
extern "C" {
- char *strncpy (char* dest, const char* dest, size_t len);
+ char *strncpy (char* dest, const char* src, size_t len);
int printf (const char*, ...);
};
void Foo::init_foo ()
{
- printf ("BROKENLY calling Foo::init_foo from __init_start; size_of(Foo) = %d\n", sizeof(Foo));
+ printf ("BROKENLY calling Foo::init_foo from __init_start; size_of(Foo) = %ld\n", (long) sizeof(Foo));
foos = FOOLISH_NUMBER;
}
#endif
}
-Foo::Foo (char* msg)
+Foo::Foo (const char* msg)
{
i = ++foos;
strncpy( message, msg, len);