diff options
Diffstat (limited to 'source/lib/debug.c')
-rw-r--r-- | source/lib/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c index 9ce5ee75e6d..ae129465eed 100644 --- a/source/lib/debug.c +++ b/source/lib/debug.c @@ -316,7 +316,7 @@ BOOL reopen_logs( void ) if (lp_loaded() && (*lp_logfile())) pstrcpy(fname, lp_logfile()); - pstrcpy( debugf, fname ); + alpha_strcpy( debugf, fname, sizeof(debugf)-1 ); if (append_log) new_dbf = sys_fopen( debugf, "a" ); else |