Skip to content

Commit

Permalink
Fix newlines in Com_Error, patch by Zack Middleton (#5023)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed Jun 6, 2011
1 parent 71b8fe4 commit 698a9c5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions code/client/cl_curl.c
Expand Up @@ -251,13 +251,13 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL )
clc.downloadCURL = qcurl_easy_init();
if(!clc.downloadCURL) {
Com_Error(ERR_DROP, "CL_cURL_BeginDownload: qcurl_easy_init() "
"failed\n");
"failed");
return;
}
clc.download = FS_SV_FOpenFileWrite(clc.downloadTempName);
if(!clc.download) {
Com_Error(ERR_DROP, "CL_cURL_BeginDownload: failed to open "
"%s for writing\n", clc.downloadTempName);
"%s for writing", clc.downloadTempName);
return;
}
qcurl_easy_setopt(clc.downloadCURL, CURLOPT_WRITEDATA, clc.download);
Expand All @@ -284,7 +284,7 @@ void CL_cURL_BeginDownload( const char *localName, const char *remoteURL )
qcurl_easy_cleanup(clc.downloadCURL);
clc.downloadCURL = NULL;
Com_Error(ERR_DROP, "CL_cURL_BeginDownload: qcurl_multi_init() "
"failed\n");
"failed");
return;
}
qcurl_multi_add_handle(clc.downloadCURLM, clc.downloadCURL);
Expand Down
2 changes: 1 addition & 1 deletion code/qcommon/cmd.c
Expand Up @@ -686,7 +686,7 @@ void Cmd_RemoveCommandSafe( const char *cmd_name )
if( cmd->function )
{
Com_Error( ERR_DROP, "Restricted source tried to remove "
"system command \"%s\"\n", cmd_name );
"system command \"%s\"", cmd_name );
return;
}

Expand Down
4 changes: 2 additions & 2 deletions code/qcommon/cvar.c
Expand Up @@ -635,10 +635,10 @@ void Cvar_SetSafe( const char *var_name, const char *value )
{
if( value )
Com_Error( ERR_DROP, "Restricted source tried to set "
"\"%s\" to \"%s\"\n", var_name, value );
"\"%s\" to \"%s\"", var_name, value );
else
Com_Error( ERR_DROP, "Restricted source tried to "
"modify \"%s\"\n", var_name );
"modify \"%s\"", var_name );
return;
}
Cvar_Set( var_name, value );
Expand Down
4 changes: 2 additions & 2 deletions code/qcommon/files.c
Expand Up @@ -541,7 +541,7 @@ static void FS_CheckFilenameIsNotExecutable( const char *filename,
if( !Q_stricmp( COM_GetExtension( filename ), DLL_EXT ) )
{
Com_Error( ERR_FATAL, "%s: Not allowed to manipulate '%s' due "
"to %s extension\n", function, filename, DLL_EXT );
"to %s extension", function, filename, DLL_EXT );
}
}

Expand Down Expand Up @@ -1454,7 +1454,7 @@ int FS_Seek( fileHandle_t f, long offset, int origin ) {

if( offset < 0 || origin == FS_SEEK_END ) {
Com_Error( ERR_FATAL, "Negative offsets and FS_SEEK_END not implemented "
"for FS_Seek on pk3 file contents\n" );
"for FS_Seek on pk3 file contents" );
return -1;
}

Expand Down

0 comments on commit 698a9c5

Please sign in to comment.