Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit866a1f0

Browse files
committed
Fix calculation of ISMN check digit.
This has always been broken, so back-patch to all supported versions.Fabien COELHO
1 parent0403814 commit866a1f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/isn/isn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ string2ean(const char *str, bool errorOK, ean13 *result,
827827
caseISMN:
828828
strncpy(buf,"9790",4);/* this isn't for sure yet, for now
829829
* ISMN it's only 9790 */
830-
valid= (valid&& ((rcheck=checkdig(buf+3,10))==check||magic));
830+
valid= (valid&& ((rcheck=checkdig(buf,13))==check||magic));
831831
break;
832832
caseISBN:
833833
strncpy(buf,"978",3);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp