rem: char buf[1024], newline = '\n';
add: char buf[512], newline = '\n';
context: void ncprint(int type, const char *fmt, ...){  int flags = type & 0xFF;  char buf[1024], newline = '\n';  FILE *fstream = stderr;		/* output stream */  va_list args;  /* clear the flags section so we obtain the pure command */  type &= ~0xFF;  /* return if this requires some verbosity levels and we haven't got it */  if (!opt_debug) {    if ((flags & NCPRINT_VERB2) && (opt_verbose < 2))      goto end;    if ((flags & NCPRINT_VERB1) && (opt_verbose < 1))      goto end;  }  /* known flags */  if (flags & NCPRINT_STDOUT)    fstream = stdout;  if (flags & NCPRINT_NONEWLINE)    newline = 0;  /* from now on, it's very probable that we will need the string formatted */  va_start(args, fmt);  vsnprintf(buf, sizeof(buf), fmt, args);  va_end(args);  switch (type) {  case NCPRINT_NORMAL:    fprintf(fstream, "%s%c", buf, newline);    break;#ifdef DEBUG  case NCPRINT_DEBUG:    if (opt_debug)      fprintf(fstream, "%s%c", buf, newline);    else      return;		/* other flags has no effect with this flag */    break;  case NCPRINT_DEBUG_V:    if (opt_debug)      fprintf(fstream, "(debug) %s%c", buf, newline);    else      return;		/* other flags has no effect with this flag */    break;#endif  case NCPRINT_ERROR:    fprintf(fstream, "%s %s%c", _("Error:"), buf, newline);    break;  case NCPRINT_WARNING:    fprintf(fstream, "%s %s%c", _("Warning:"), buf, newline);    break;  case NCPRINT_NOTICE:    fprintf(fstream, "%s %s%c", _("Notice:"), buf, newline);    break;  }  /* discard unknown types */  /* post-output effects flags */  if (flags & NCPRINT_DELAY)    usleep(NCPRINT_WAITTIME); end:  /* now resolve the EXIT flag. If this was a verbosity message but we don't     have the required level, exit anyway. */  if (flags & NCPRINT_EXIT)    exit(EXIT_FAILURE);}