mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-25 03:12:49 +00:00
Merge branch 'master' of ssh://github.com/fluxer/kdelibs into devinfo
This commit is contained in:
commit
af07d9c4bc
2 changed files with 3 additions and 2 deletions
|
@ -1085,7 +1085,7 @@ unsigned long KStartupInfoId::timestamp() const
|
|||
return time;
|
||||
}
|
||||
// libstartup-notification style :
|
||||
// qsnprintf (s, len, "%s/%s/%lu/%d-%d-%s",
|
||||
// snprintf (s, len, "%s/%s/%lu/%d-%d-%s",
|
||||
// canonicalized_launcher, canonicalized_launchee, (unsigned long) timestamp,
|
||||
// (int) getpid (), (int) sequence_number, hostbuf);
|
||||
int pos1 = d->id.lastIndexOf( '/' );
|
||||
|
|
|
@ -724,7 +724,8 @@ static void sigsegv_handler(int sig)
|
|||
// Debug and printf should be avoided because they might
|
||||
// call malloc.. and get in a nice recursive malloc loop
|
||||
char buffer[120];
|
||||
qsnprintf(buffer, sizeof(buffer), "kioslave: ####### CRASH ###### protocol = %s pid = %d signal = %d\n", s_protocol, getpid(), sig);
|
||||
memset(buffer, '\0', sizeof(buffer) * sizeof(char));
|
||||
snprintf(buffer, sizeof(buffer), "kioslave: ####### CRASH ###### protocol = %s pid = %d signal = %d\n", s_protocol, getpid(), sig);
|
||||
write(2, buffer, strlen(buffer));
|
||||
#ifndef NDEBUG
|
||||
#ifdef HAVE_BACKTRACE
|
||||
|
|
Loading…
Add table
Reference in a new issue