mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
generic: do not use static buffers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ea8fad680c
commit
a0449e5998
3 changed files with 3 additions and 3 deletions
|
@ -141,7 +141,7 @@ void proctitle_init(int argc, char *argv[], char *envp[]) {
|
|||
|
||||
void proctitle_set(const char *fmt, ...) {
|
||||
va_list msg;
|
||||
static char statbuf[BUFSIZ];
|
||||
char statbuf[BUFSIZ];
|
||||
|
||||
#ifndef HAVE_SETPROCTITLE
|
||||
# if PF_ARGV_TYPE == PF_ARGV_PSTAT
|
||||
|
|
|
@ -225,7 +225,7 @@ bool SocketConnectionBackend::sendCommand(const Task &task)
|
|||
Q_ASSERT(state == Connected);
|
||||
Q_ASSERT(socket);
|
||||
|
||||
static char buffer[HeaderSize + 2];
|
||||
char buffer[HeaderSize + 2];
|
||||
sprintf(buffer, "%6x_%2x_", task.data.size(), task.cmd);
|
||||
socket->write(buffer, HeaderSize);
|
||||
socket->write(task.data);
|
||||
|
|
|
@ -392,7 +392,7 @@ bool KFileItemPrivate::cmp( const KFileItemPrivate & item ) const
|
|||
inline //because it is used only in one place
|
||||
QString KFileItemPrivate::parsePermissions(mode_t perm) const
|
||||
{
|
||||
static char buffer[ 12 ];
|
||||
char buffer[ 12 ];
|
||||
|
||||
char uxbit,gxbit,oxbit;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue