|
@@ -360,7 +360,12 @@ const char *RFCStrings[] =
|
|
|
RFCText(RFCsetfileperms),
|
|
|
RFCText(RFCunknown),
|
|
|
};
|
|
|
-static const char *getRFCText(RemoteFileCommandType cmd) { return RFCStrings[cmd]; }
|
|
|
+static const char *getRFCText(RemoteFileCommandType cmd)
|
|
|
+{
|
|
|
+ if (cmd > RFCmax)
|
|
|
+ cmd = RFCmax;
|
|
|
+ return RFCStrings[cmd];
|
|
|
+}
|
|
|
|
|
|
#define ThrottleText(throttleClass) #throttleClass
|
|
|
const char *ThrottleStrings[] =
|