]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regposerr.c
MdeModulePkg: Delete useless case code
[mirror_edk2.git] / MdeModulePkg / Universal / RegularExpressionDxe / Oniguruma / regposerr.c
index e5ff3f5b40872023a18c0958326872e201aac466..fb1b9286a2063528436ea10ec121b99060952f91 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (c) 2002-2007  K.Kosako  <sndgk393 AT ybb DOT ne DOT jp>\r
  * All rights reserved.\r
  *\r
- * Copyright (c) 2015, Hewlett Packard Enterprise Development, L.P.<BR> \r
+ * (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
  *\r
  * Redistribution and use in source and binary forms, with or without\r
  * modification, are permitted provided that the following conditions\r
@@ -88,7 +88,7 @@ regerror(int posix_ecode, const regex_t* reg ARG_UNUSED, char* buf,
     s = "";\r
   }\r
   else {\r
-    sprintf(tbuf, "undefined error code (%d)", posix_ecode);\r
+    sprintf_s(tbuf, sizeof(tbuf), "undefined error code (%d)", posix_ecode);\r
     s = tbuf;\r
   }\r
 \r