Bug 1197331 - remove PR_snprintf calls in miscellaneous directories. r=nfroyd

This commit is contained in:
Igor
2016-08-04 16:41:00 +02:00
parent 91b11c466c
commit 27c926c49e
7 changed files with 18 additions and 23 deletions

View File

@@ -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
@@ -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