File fix_inventory.patch of Package acm

Index: acm-6.0+20200416/src/acm/inventory.c
===================================================================
--- acm-6.0+20200416.orig/src/acm/inventory.c
+++ acm-6.0+20200416/src/acm/inventory.c
@@ -1293,7 +1293,7 @@ ParseAircraft(struct lex_record *p, craf
 
 						}
 						else {
-							sprintf(s, "\"%s\" is not a valid aircraft type", token);
+							sprintf(s, "\"%.99s\" is not a valid aircraft type", token);
 							ParseError(p, s);
 						}
 					}
@@ -1309,17 +1309,17 @@ ParseAircraft(struct lex_record *p, craf
 						else if( strcmp(token, "GenericRocketEngine") == 0 )
 							xxx.engineType = inventory_GenericRocketEngine;
 						else {
-							sprintf(s, "unknown engine type: \"%s\"", token);
+							sprintf(s, "unknown engine type: \"%.99s\"", token);
 							ParseError(p, s);
 						}
 							
 					} else {
-						sprintf(s, "unexpected token: \"%s\"", token);
+						sprintf(s, "unexpected token: \"%.99s\"", token);
 						ParseError(p, s);
 					}
 					
 				} else {
-					sprintf(s, "unexpected token: \"%s\"", token);
+					sprintf(s, "unexpected token: \"%.99s\"", token);
 					ParseError(p, s);
 				}
 				break;
@@ -1440,7 +1440,7 @@ ParseAircraft(struct lex_record *p, craf
 			return 0;
 		}
 		else {
-			sprintf(s, "\"%s\" was found where another token was\
+			sprintf(s, "\"%.99s\" was found where another token was\
  expected", token);
 			ParseError(p, s);
 			return -1;
openSUSE Build Service is sponsored by