Skip to content

Commit

Permalink
cmd/img_mgmt: Fix cut-paste error in img_mgmt_ver_str() (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccrea authored Feb 24, 2020
1 parent 1f9d4da commit ae4659b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/img_mgmt/src/img_mgmt_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
Expand Down Expand Up @@ -40,10 +40,10 @@ img_mgmt_ver_str(const struct image_version *ver, char *dst)

dst[off++] = '.';
off += ull_to_s(ver->iv_revision, INT_MAX, dst + off);

if (ver->iv_build_num != 0) {
dst[off++] = '.';
off += ull_to_s(ver->iv_revision, INT_MAX, dst + off);
off += ull_to_s(ver->iv_build_num, INT_MAX, dst + off);
}

return 0;
Expand Down

0 comments on commit ae4659b

Please sign in to comment.