diff --git a/kdeui/kernel/kstartupinfo.cpp b/kdeui/kernel/kstartupinfo.cpp index 5f08ce2b..cc890222 100644 --- a/kdeui/kernel/kstartupinfo.cpp +++ b/kdeui/kernel/kstartupinfo.cpp @@ -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( '/' ); diff --git a/kio/kio/slavebase.cpp b/kio/kio/slavebase.cpp index e80d4013..c314e37c 100644 --- a/kio/kio/slavebase.cpp +++ b/kio/kio/slavebase.cpp @@ -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