aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/pvr/pvr_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/pvr/pvr_debug.c')
-rw-r--r--drivers/gpu/pvr/pvr_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/pvr/pvr_debug.c b/drivers/gpu/pvr/pvr_debug.c
index 091f6590e70..2e64fe6ed36 100644
--- a/drivers/gpu/pvr/pvr_debug.c
+++ b/drivers/gpu/pvr/pvr_debug.c
@@ -1,6 +1,6 @@
1/********************************************************************** 1/**********************************************************************
2 * 2 *
3 * Copyright(c) 2008 Imagination Technologies Ltd. All rights reserved. 3 * Copyright (C) Imagination Technologies Ltd. All rights reserved.
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify it 5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License, 6 * under the terms and conditions of the GNU General Public License,
@@ -312,7 +312,8 @@ IMG_VOID PVRSRVDebugPrintf (
312 IMG_CHAR* pszTruncBackInter; 312 IMG_CHAR* pszTruncBackInter;
313 313
314 314
315 pszFileName = pszFullFileName + strlen(DEBUG_LOG_PATH_TRUNCATE)+1; 315 if (strlen(pszFullFileName) > strlen(DEBUG_LOG_PATH_TRUNCATE)+1)
316 pszFileName = pszFullFileName + strlen(DEBUG_LOG_PATH_TRUNCATE)+1;
316 317
317 318
318 strncpy(szFileNameRewrite, pszFileName,PVR_MAX_FILEPATH_LEN); 319 strncpy(szFileNameRewrite, pszFileName,PVR_MAX_FILEPATH_LEN);