Loading accessible/atk/AccessibleWrap.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ #include "nsMai.h" #include "nsMaiHyperlink.h" #include "nsString.h" #include "prprf.h" #include "nsStateMap.h" #include "mozilla/a11y/Platform.h" #include "Relation.h" Loading @@ -28,6 +27,7 @@ #include "nsISimpleEnumerator.h" #include "mozilla/ArrayUtils.h" #include "mozilla/Snprintf.h" #include "nsXPCOMStrings.h" #include "nsComponentManagerUtils.h" #include "nsIPersistentProperties2.h" Loading Loading @@ -436,8 +436,7 @@ GetUniqueMaiAtkTypeName(uint16_t interfacesBits) static gchar namePrefix[] = "MaiAtkType"; /* size = 10 */ static gchar name[MAI_ATK_TYPE_NAME_LEN + 1]; PR_snprintf(name, MAI_ATK_TYPE_NAME_LEN, "%s%x", namePrefix, interfacesBits); snprintf_literal(name, "%s%x", namePrefix, interfacesBits); name[MAI_ATK_TYPE_NAME_LEN] = '\0'; return name; Loading browser/components/shell/nsGNOMEShellService.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ #include "nsIImageLoadingContent.h" #include "imgIRequest.h" #include "imgIContainer.h" #include "prprf.h" #include "mozilla/Snprintf.h" #if defined(MOZ_WIDGET_GTK) #include "nsIImageToPixbuf.h" #endif Loading Loading @@ -516,7 +516,7 @@ ColorToCString(uint32_t aColor, nsCString& aResult) uint16_t green = COLOR_8_TO_16_BIT((aColor >> 8) & 0xff); uint16_t blue = COLOR_8_TO_16_BIT(aColor & 0xff); PR_snprintf(buf, 14, "#%04x%04x%04x", red, green, blue); snprintf(buf, 14, "#%04x%04x%04x", red, green, blue); } NS_IMETHODIMP Loading image/decoders/icon/nsIconURI.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -9,11 +9,11 @@ #include "mozilla/ArrayUtils.h" #include "mozilla/ipc/URIUtils.h" #include "mozilla/Snprintf.h" #include "nsIIOService.h" #include "nsIURL.h" #include "nsNetUtil.h" #include "prprf.h" #include "plstr.h" #include <stdlib.h> Loading Loading @@ -94,7 +94,7 @@ nsMozIconURI::GetSpec(nsACString& aSpec) aSpec += kSizeStrings[mIconSize]; } else { char buf[20]; PR_snprintf(buf, sizeof(buf), "%d", mSize); snprintf_literal(buf, "%d", mSize); aSpec.Append(buf); } Loading toolkit/components/url-classifier/nsUrlClassifierUtils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -9,9 +9,9 @@ #include "nsTArray.h" #include "nsReadableUtils.h" #include "plbase64.h" #include "prprf.h" #include "nsPrintfCString.h" #include "safebrowsing.pb.h" #include "mozilla/Snprintf.h" #define DEFAULT_PROTOCOL_VERSION "2.2" Loading Loading @@ -484,7 +484,7 @@ nsUrlClassifierUtils::CanonicalNum(const nsACString& num, while (bytes--) { char buf[20]; PR_snprintf(buf, sizeof(buf), "%u", val & 0xff); snprintf_literal(buf, "%u", val & 0xff); if (_retval.IsEmpty()) { _retval.Assign(buf); } else { Loading tools/profiler/core/ProfilerMarkers.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ #ifndef SPS_STANDALONE #include "gfxASurface.h" #include "Layers.h" #include "prprf.h" #include "mozilla/Snprintf.h" #endif ProfilerMarkerPayload::ProfilerMarkerPayload(ProfilerBacktrace* aStack) Loading Loading @@ -174,7 +174,7 @@ LayerTranslationPayload::StreamPayload(SpliceableJSONWriter& aWriter, { const size_t bufferSize = 32; char buffer[bufferSize]; PR_snprintf(buffer, bufferSize, "%p", mLayer); snprintf_literal(buffer, "%p", mLayer); aWriter.StringProperty("layer", buffer); aWriter.IntProperty("x", mPoint.x); Loading Loading
accessible/atk/AccessibleWrap.cpp +2 −3 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ #include "nsMai.h" #include "nsMaiHyperlink.h" #include "nsString.h" #include "prprf.h" #include "nsStateMap.h" #include "mozilla/a11y/Platform.h" #include "Relation.h" Loading @@ -28,6 +27,7 @@ #include "nsISimpleEnumerator.h" #include "mozilla/ArrayUtils.h" #include "mozilla/Snprintf.h" #include "nsXPCOMStrings.h" #include "nsComponentManagerUtils.h" #include "nsIPersistentProperties2.h" Loading Loading @@ -436,8 +436,7 @@ GetUniqueMaiAtkTypeName(uint16_t interfacesBits) static gchar namePrefix[] = "MaiAtkType"; /* size = 10 */ static gchar name[MAI_ATK_TYPE_NAME_LEN + 1]; PR_snprintf(name, MAI_ATK_TYPE_NAME_LEN, "%s%x", namePrefix, interfacesBits); snprintf_literal(name, "%s%x", namePrefix, interfacesBits); name[MAI_ATK_TYPE_NAME_LEN] = '\0'; return name; Loading
browser/components/shell/nsGNOMEShellService.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ #include "nsIImageLoadingContent.h" #include "imgIRequest.h" #include "imgIContainer.h" #include "prprf.h" #include "mozilla/Snprintf.h" #if defined(MOZ_WIDGET_GTK) #include "nsIImageToPixbuf.h" #endif Loading Loading @@ -516,7 +516,7 @@ ColorToCString(uint32_t aColor, nsCString& aResult) uint16_t green = COLOR_8_TO_16_BIT((aColor >> 8) & 0xff); uint16_t blue = COLOR_8_TO_16_BIT(aColor & 0xff); PR_snprintf(buf, 14, "#%04x%04x%04x", red, green, blue); snprintf(buf, 14, "#%04x%04x%04x", red, green, blue); } NS_IMETHODIMP Loading
image/decoders/icon/nsIconURI.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -9,11 +9,11 @@ #include "mozilla/ArrayUtils.h" #include "mozilla/ipc/URIUtils.h" #include "mozilla/Snprintf.h" #include "nsIIOService.h" #include "nsIURL.h" #include "nsNetUtil.h" #include "prprf.h" #include "plstr.h" #include <stdlib.h> Loading Loading @@ -94,7 +94,7 @@ nsMozIconURI::GetSpec(nsACString& aSpec) aSpec += kSizeStrings[mIconSize]; } else { char buf[20]; PR_snprintf(buf, sizeof(buf), "%d", mSize); snprintf_literal(buf, "%d", mSize); aSpec.Append(buf); } Loading
toolkit/components/url-classifier/nsUrlClassifierUtils.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -9,9 +9,9 @@ #include "nsTArray.h" #include "nsReadableUtils.h" #include "plbase64.h" #include "prprf.h" #include "nsPrintfCString.h" #include "safebrowsing.pb.h" #include "mozilla/Snprintf.h" #define DEFAULT_PROTOCOL_VERSION "2.2" Loading Loading @@ -484,7 +484,7 @@ nsUrlClassifierUtils::CanonicalNum(const nsACString& num, while (bytes--) { char buf[20]; PR_snprintf(buf, sizeof(buf), "%u", val & 0xff); snprintf_literal(buf, "%u", val & 0xff); if (_retval.IsEmpty()) { _retval.Assign(buf); } else { Loading
tools/profiler/core/ProfilerMarkers.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ #ifndef SPS_STANDALONE #include "gfxASurface.h" #include "Layers.h" #include "prprf.h" #include "mozilla/Snprintf.h" #endif ProfilerMarkerPayload::ProfilerMarkerPayload(ProfilerBacktrace* aStack) Loading Loading @@ -174,7 +174,7 @@ LayerTranslationPayload::StreamPayload(SpliceableJSONWriter& aWriter, { const size_t bufferSize = 32; char buffer[bufferSize]; PR_snprintf(buffer, bufferSize, "%p", mLayer); snprintf_literal(buffer, "%p", mLayer); aWriter.StringProperty("layer", buffer); aWriter.IntProperty("x", mPoint.x); Loading