[w3m-dev-en 00103] snprintf (SunOS)

From: Michael Wirtz (wirtz@fh-brandenburg.de)
Date: Mon Apr 03 2000 - 07:33:05 CDT


Compiling w3m under SunOS 5.5.1 doesn't work, because curses doesn't know
about the snprintf() function used in frame.c.

snprintf() seems to be a GNU extension (well, my Linux man page says so...)

In my infinite greenness I changed:
- snprintf((f->set[i].body->name = GC_MALLOC_ATOMIC(j)), j,
- "%s_%d", f->name, i);

to:

+ sprintf((f->set[i].body->name = GC_MALLOC_ATOMIC(j)),
+ "%s_%d", f->name, i);

which made w3m compile.

May an experienced programmer decide, how to handle this correctly.

Mic.



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT