Avoid strlen().
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Feb 2005 12:33:25 +0000 (12:33 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Feb 2005 12:33:25 +0000 (12:33 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@375 38d2e660-2303-0410-9eaa-f027e97ec537

mware/formatwr.c

index ed52ea291a9a8698fce5ac81a87293a99bd151fc..9e85ce862508553cee6f7982633c4bbe010295ef 100755 (executable)
@@ -53,6 +53,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.13  2005/02/18 12:33:25  bernie
+ *#* Avoid strlen().
+ *#*
  *#* Revision 1.12  2005/02/16 20:28:03  bernie
  *#* Add %S formatter.
  *#*
@@ -738,7 +741,7 @@ FLOATING_CONVERSION:
                        default:
                                /* Undefined conversion! */
                                ptr = buf_pointer = bad_conversion;
-                               ptr += strlen(bad_conversion);
+                               ptr += sizeof(bad_conversion) - 1;
                                break;
 
                }