--- deliantra/server/socket/request.C 2006/12/13 18:51:50 1.28 +++ deliantra/server/socket/request.C 2006/12/13 21:27:09 1.29 @@ -963,7 +963,7 @@ * requiing this minimal value reduces complexity of that code, and it * has been around for a long time. */ - if (!strcmp (" CF DX CLIENT", cp) || ns->sc_version < 1024) + if (ns->sc_version < 1026) { sprintf (version_warning, "drawinfo %d %s", NDI_RED, "**** VERSION WARNING ****\n**** CLIENT IS TOO OLD!! UPDATE THE CLIENT!! ****"); @@ -2356,7 +2356,7 @@ sl << "replyinfo skill_info\n"; for (int i = 1; i < NUM_SKILLS; i++) - sl.len += sprintf ((char *)sl.buf + sl.len, "%d:%s\n", i + CS_STAT_SKILLINFO, &skill_names[i]); + sl.printf ("%d:%s\n", i + CS_STAT_SKILLINFO, &skill_names[i]); if (sl.len >= MAXSOCKBUF) { @@ -2380,7 +2380,7 @@ sl << "replyinfo spell_paths\n"; for (int i = 0; i < NRSPELLPATHS; i++) - sl.len += sprintf ((char *)sl.buf + sl.len, "%d:%s\n", 1 << i, spellpathnames[i]); + sl.printf ("%d:%s\n", 1 << i, spellpathnames[i]); if (sl.len >= MAXSOCKBUF) {