rem: sprintf(buffer, "\n	Unknown request code: %i\n",
add: sprintf(buffer, "\n	Request code: %i\n",
context: FormatXError(Display *dpy, XErrorEvent *error, char *buffer, int size){    int i, p;        XGetErrorText(dpy, error->error_code, buffer, size);    i = strlen(buffer);    if (i > size-100)      return;    buffer += i;    if (error->request_code >= sizeof(requestCodes)/sizeof(char*)) {	sprintf(buffer, "\n	Unknown request code: %i\n",		error->request_code);    } else {	sprintf(buffer, "\n	Request code: %i %s\n", error->request_code,		requestCodes[error->request_code]);    }    i += p = strlen(buffer);    if (i > size - 40)      return;    buffer += p;     sprintf(buffer, "	Request minor code: %i\n", error->minor_code);    i += p = strlen(buffer);    if (i > size - 30)      return;    buffer += p;    sprintf(buffer, "	Resource ID: 0x%x\n", (unsigned int)error->resourceid);    i += p = strlen(buffer);    if (i > size - 30)      return;    buffer += p;    sprintf(buffer, "	Error serial: %li\n", error->serial);    return;}