From 9a4af42537b758a3c1c68d09508ece76436e3e32 Mon Sep 17 00:00:00 2001 From: "mcmullen%netscape.com" Date: Wed, 21 Apr 1999 22:55:37 +0000 Subject: [PATCH] Fix unix warning about sscanf --- modules/libpref/src/prefapi.c | 2 +- modules/libpref/src/prefapi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/libpref/src/prefapi.c b/modules/libpref/src/prefapi.c index d895c529c956..f56fc1b91e86 100644 --- a/modules/libpref/src/prefapi.c +++ b/modules/libpref/src/prefapi.c @@ -1527,7 +1527,7 @@ PREF_GetDefaultRectPref(const char *pref_name, int16 *left, int16 *top, int16 *r PrefResult result = PREF_GetDefaultCharPref(pref_name, (char *)&rectstr, &iLen); if (result == PREF_NOERROR) { - sscanf(rectstr, "%d,%d,%d,%d", left, top, right, bottom); + sscanf(rectstr, "%hd,%hd,%hd,%hd", left, top, right, bottom); } return result; } diff --git a/modules/libpref/src/prefapi.cpp b/modules/libpref/src/prefapi.cpp index d895c529c956..f56fc1b91e86 100644 --- a/modules/libpref/src/prefapi.cpp +++ b/modules/libpref/src/prefapi.cpp @@ -1527,7 +1527,7 @@ PREF_GetDefaultRectPref(const char *pref_name, int16 *left, int16 *top, int16 *r PrefResult result = PREF_GetDefaultCharPref(pref_name, (char *)&rectstr, &iLen); if (result == PREF_NOERROR) { - sscanf(rectstr, "%d,%d,%d,%d", left, top, right, bottom); + sscanf(rectstr, "%hd,%hd,%hd,%hd", left, top, right, bottom); } return result; }