summaryrefslogtreecommitdiff
path: root/src/server/sv_init.c
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-05-12 14:02:48 +0000
committerTim Angus <tim@ngus.net>2013-01-09 22:15:38 +0000
commitc6d43a9ba93e079153f298cf8ec978e4cb1f0a38 (patch)
tree40bb42d874cd82a2b50b5ccf712203a80d431ded /src/server/sv_init.c
parentb4597c4d44c8b9f02a9129a7885b8a41c095d514 (diff)
Remove newlines from Com_Error message format strings, patch by DevHC
Diffstat (limited to 'src/server/sv_init.c')
-rw-r--r--src/server/sv_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/sv_init.c b/src/server/sv_init.c
index e84ff0f4..a723f68c 100644
--- a/src/server/sv_init.c
+++ b/src/server/sv_init.c
@@ -116,7 +116,7 @@ void SV_SetConfigstring (int index, const char *val) {
client_t *client;
if ( index < 0 || index >= MAX_CONFIGSTRINGS ) {
- Com_Error (ERR_DROP, "SV_SetConfigstring: bad index %i\n", index);
+ Com_Error (ERR_DROP, "SV_SetConfigstring: bad index %i", index);
}
if ( !val ) {
@@ -164,7 +164,7 @@ void SV_GetConfigstring( int index, char *buffer, int bufferSize ) {
Com_Error( ERR_DROP, "SV_GetConfigstring: bufferSize == %i", bufferSize );
}
if ( index < 0 || index >= MAX_CONFIGSTRINGS ) {
- Com_Error (ERR_DROP, "SV_GetConfigstring: bad index %i\n", index);
+ Com_Error (ERR_DROP, "SV_GetConfigstring: bad index %i", index);
}
if ( !sv.configstrings[index].s ) {
buffer[0] = 0;
@@ -206,7 +206,7 @@ SV_SetUserinfo
*/
void SV_SetUserinfo( int index, const char *val ) {
if ( index < 0 || index >= sv_maxclients->integer ) {
- Com_Error (ERR_DROP, "SV_SetUserinfo: bad index %i\n", index);
+ Com_Error (ERR_DROP, "SV_SetUserinfo: bad index %i", index);
}
if ( !val ) {
@@ -230,7 +230,7 @@ void SV_GetUserinfo( int index, char *buffer, int bufferSize ) {
Com_Error( ERR_DROP, "SV_GetUserinfo: bufferSize == %i", bufferSize );
}
if ( index < 0 || index >= sv_maxclients->integer ) {
- Com_Error (ERR_DROP, "SV_GetUserinfo: bad index %i\n", index);
+ Com_Error (ERR_DROP, "SV_GetUserinfo: bad index %i", index);
}
Q_strncpyz( buffer, svs.clients[ index ].userinfo, bufferSize );
}