#include <ctype.h>
#include <string.h>
#include <sys/types.h>
-#include <sys/time.h>
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#include "routines2.h"
#include "tools.h"
#include "rooms.h"
+#include "client_chat.h"
#ifndef HAVE_SNPRINTF
#include "snprintf.h"
#endif
int rc_exp_beep;
-char rc_exp_cmd[256];
+char rc_exp_cmd[1024];
int rc_allow_attachments;
int rc_display_message_numbers;
int rc_force_mail_prompts;
int rc_remember_passwords;
int rc_ansi_color;
int num_urls = 0;
-char urls[MAXURLS][256];
-char rc_url_cmd[256];
+char urls[MAXURLS][SIZ];
+char rc_url_cmd[SIZ];
char *gl_string;
int next_lazy_cmd = 5;
*/
void print_express(void)
{
- char buf[256];
+ char buf[1024];
FILE *outpipe;
time_t timestamp;
struct tm *stamp;
flags = extract_int(&buf[4], 2);
extract(sender, &buf[4], 3);
extract(node, &buf[4], 4);
+ strcpy(last_paged, sender);
stamp = localtime(×tamp);
static time_t idlet = 0;
static void really_do_keepalive(void) {
- char buf[256];
+ char buf[1024];
time(&idlet);
if (keepalives_enabled == KA_YES) {
void load_command_set(void)
{
FILE *ccfile;
- char buf[256];
+ char buf[1024];
struct citcmd *cptr;
struct citcmd *lastcmd = NULL;
int a, d;
perror("commands: cannot open citadel.rc");
logoff(errno);
}
- while (fgets(buf, 256, ccfile) != NULL) {
+ while (fgets(buf, sizeof buf, ccfile) != NULL) {
while ((strlen(buf) > 0) ? (isspace(buf[strlen(buf) - 1])) : 0)
buf[strlen(buf) - 1] = 0;
{
int a;
static char exp[64];
- char buf[256];
+ char buf[1024];
strcpy(exp, strbuf);
if ( (!strncasecmp(buffer, "http://", 7))
|| (!strncasecmp(buffer, "ftp://", 6)) ) {
- safestrncpy(urls[num_urls], buffer, 255);
+ safestrncpy(urls[num_urls], buffer, (SIZ-1));
for (a=0; a<strlen(urls[num_urls]); ++a) {
b = urls[num_urls][a];
if ( (b==' ') || (b==')') || (b=='>') || (b==10)
int i, c, a;
int choices;
int do_prompt = 0;
- char buf[256];
+ char buf[1024];
int ch;
int display_prompt = 1;